I am trying to show the user presence indicator(online status) as in office communicator in the custom webparts created in visual studio and deployed in sharepoint 2010.So far I have implemented
LiteralControl l =newLiteralControl();
l.Text="<span><img border=\"0\" height=\"12\" src=\"/_layouts/images/imnhdr.gif\"onload=\"IMNRC('"+
userEmail +"')\"ShowOfflinePawn=\"1\" alt=\"\" id=\"user_presence_icon\"/></span>";
this.Controls.Add(l);
Thanks
Suu30