|
-
Feb 28th, 2002, 03:42 AM
#1
Thread Starter
Addicted Member
How to add a status bar?
Hi evrerybody,
Can anyone tell me how to add a status bar to the form?
Regards,
Samir.
-
Feb 28th, 2002, 03:48 AM
#2
-= B u g S l a y e r =-
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.
-
Feb 28th, 2002, 03:51 AM
#3
Member
in the project menu...go to components and add microsoft windows common controls...atlast say ok..
u will get those on ur IDE..
-
Feb 28th, 2002, 03:59 AM
#4
Thread Starter
Addicted Member
Thanx Peet.
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.
-
Feb 28th, 2002, 04:05 AM
#5
-= B u g S l a y e r =-
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.
-
Feb 28th, 2002, 04:09 AM
#6
-= B u g S l a y e r =-
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.
-
Feb 28th, 2002, 04:09 AM
#7
Thread Starter
Addicted Member
Thanx..
Thank u Rojashree and Peet.
-
Feb 28th, 2002, 04:11 AM
#8
-= B u g S l a y e r =-
samkud, we did the last post at the same time... just making sure u saw the loading picture sample
-
Feb 28th, 2002, 04:15 AM
#9
Thread Starter
Addicted Member
Thanx peet.
Thanx once again peet. hey are u from India. CAn i have ur email id in case of any difficulty.
Regards
Samir
-
Feb 28th, 2002, 04:23 AM
#10
Member
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.
-
Feb 28th, 2002, 04:31 AM
#11
Thread Starter
Addicted Member
Thanx Rojasree
Thanx Rojasree. That tip u gave worked.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|