Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2004
    Location
    Boston, MA
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Visual Basic: Status Bars

    I urgently need help to do this homework for a class. I have a status bar at the bottom of my application called "sbMessages" and need to be able to write text into programatically. I didn't see any ".Caption" or ".Text" properties for this type of item and it's my first time working with them. Does anyone know how to do this? Thanks in advance.

  • #2
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,060
    Thanks
    0
    Thanked 13 Times in 13 Posts
    While I cannot give you the answer on how, I can at least point you in the right direction...

    When dealing with a status bar you have to remember that it uses panels... The panel would hold the caption variable... I.E.:

    sbMessages.Panels(1).Text = "Say this..."

    So the first thing you need to do is to define a panel onto your status bar...

    -sage-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000

  • #3
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sage is right, partly. The status bar has a Style property. If this property is set to sbrNormal then the status bar has the panels and what sage said is true. If you set this property to sbrSimple then your status bar won't have multiple panels, just one, and then you can set the text using the SimpleText property.

    shmoove

  • #4
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,060
    Thanks
    0
    Thanked 13 Times in 13 Posts
    Thanks for clarifying shmoove...

    -sage-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000

  • #5
    New Coder
    Join Date
    Jan 2004
    Location
    Boston, MA
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks...

    Thank you both for helping. All I needed was to change the style to simple and post some dummy text when the user clicks on a menu or toolbar item. I hope my teacher's pleased cuz the book wanted it to be a label placed down at the bottom of the form, which is stupid in my mind. Thanks guys


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •