Results 1 to 11 of 11

Thread: How to add a status bar?

  1. #1

    Thread Starter
    Addicted Member samkud's Avatar
    Join Date
    Oct 2001
    Location
    India
    Posts
    171

    Question How to add a status bar?

    Hi evrerybody,

    Can anyone tell me how to add a status bar to the form?

    Regards,

    Samir.

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    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.
    -= a peet post =-

  3. #3
    Member
    Join Date
    Feb 2002
    Location
    A.P,INDIA
    Posts
    48
    in the project menu...go to components and add microsoft windows common controls...atlast say ok..
    u will get those on ur IDE..
    Rojasree.

  4. #4

    Thread Starter
    Addicted Member samkud's Avatar
    Join Date
    Oct 2001
    Location
    India
    Posts
    171

    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.

  5. #5
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    to show text, try this

    VB Code:
    1. Private Sub Command1_Click()
    2.     Me.StatusBar1.Panels(1).Text = "Test"
    3. End Sub


    icons I don't know ... sorry.
    -= a peet post =-

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    ok, never used it before, but it wasn't to hard afterall.. to add picture u can simply do this :

    VB Code:
    1. Private Sub Command1_Click()
    2.     Me.StatusBar1.Panels(1).Picture = LoadPicture("D:\data\Graphics\ICONS\ico_info.ico")
    3.     Me.StatusBar1.Panels(1).Text = "Test"
    4. 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.
    -= a peet post =-

  7. #7

    Thread Starter
    Addicted Member samkud's Avatar
    Join Date
    Oct 2001
    Location
    India
    Posts
    171

    Thanx..

    Thank u Rojashree and Peet.

  8. #8
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    samkud, we did the last post at the same time... just making sure u saw the loading picture sample
    -= a peet post =-

  9. #9

    Thread Starter
    Addicted Member samkud's Avatar
    Join Date
    Oct 2001
    Location
    India
    Posts
    171

    Thanx peet.

    Thanx once again peet. hey are u from India. CAn i have ur email id in case of any difficulty.

    Regards

    Samir

  10. #10
    Member
    Join Date
    Feb 2002
    Location
    A.P,INDIA
    Posts
    48
    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.
    Rojasree.

  11. #11

    Thread Starter
    Addicted Member samkud's Avatar
    Join Date
    Oct 2001
    Location
    India
    Posts
    171

    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
  •  



Click Here to Expand Forum to Full Width