About StatusBar in C#


i have applied below code managing status bar panel. need inform first applied onto mdi (left side : user name, right side : date time). after applied onto different form when applied code form showing 2 panel bar form. please help...

------ form load statusbarpanel statuspanel = new statusbarpanel(); statusbarpanel recordcount = new statusbarpanel();

statusbar mainstatusbar = new statusbar(); int countvalue = 0; recordcount.borderstyle = statusbarpanelborderstyle.raised; recordcount.width = 100; countvalue = program.getnumericvalue("select count(*) knt <table name>"); recordcount.text = "total record : " + countvalue.tostring(); recordcount.tooltiptext = "total record"; recordcount.autosize = statusbarpanelautosize.spring; mainstatusbar.panels.add(recordcount); mainstatusbar.showpanels = true; this.controls.add(mainstatusbar); ------ insert block countvalue = program.getnumericvalue("select count(*) knt <table name>");

recordcount.text = "total record : " + countvalue.tostring(); <n.b : program.getnumericvalue : counting records connected

database, nothing else>


hi prasantabangla,

would mind clarify issue more please? thanks.


bob shen
msdn community support | feedback us
develop , promote apps in windows store
please remember mark replies answers if , unmark them if provide no help.



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to Share webservice object to all user