Hi evrerybody,
Can anyone tell me how to add a status bar to the form?
Regards,
Samir.
Printable View
Hi evrerybody,
Can anyone tell me how to add a status bar to the form?
Regards,
Samir.
Right click u'r VB toolbox.
Select Components... from the menu that appear
In the components list, browse down until u find Microsoft Windows Common Controls X.X
Make sure it is selected, click ok
new tools will be available in the toolbox. one of the is a statusbar component.
in the project menu...go to components and add microsoft windows common controls...atlast say ok..
u will get those on ur IDE..
Hi Peet,
Thanx for the solution to my problem. I did as u said. But dow doi show the text in the status bar. And also how can I show an icon in the status bar?
Regards,
Samir.
to show text, try this
VB Code:
Private Sub Command1_Click() Me.StatusBar1.Panels(1).Text = "Test" End Sub
icons I don't know ... sorry.
ok, never used it before, but it wasn't to hard afterall.. to add picture u can simply do this :
VB Code:
Private Sub Command1_Click() Me.StatusBar1.Panels(1).Picture = LoadPicture("D:\data\Graphics\ICONS\ico_info.ico") Me.StatusBar1.Panels(1).Text = "Test" End Sub
also, if u want to set these things during design time, u can do so by right clicking the status bar, and the choose properties. :)
Thank u Rojashree and Peet.
samkud, we did the last post at the same time... just making sure u saw the loading picture sample :)
Thanx once again peet. hey are u from India. CAn i have ur email id in case of any difficulty.
Regards
Samir
u may do like this to get text....
selectstr the staus bar 'style' property to 1-sbrsample and whatever the text u want that place in the 'simpletext' propertyof the statusbar.
Thanx Rojasree. That tip u gave worked.