Results 1 to 5 of 5

Thread: StatusBarPanel [Resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    127

    StatusBarPanel [Resolved]

    Is it possible to change the icon in a StatusBarPanel? I know the code to change the text in the panel when a control is clicked etc... but I would like to change it for when a validation error occurs or when the program is doing a calculation.

    Basicaly having two icons and depending on what the program is doing it will show one of the two icons in the StatusBarPanel along with the text that I place with the following code.

    Code:
    StatusBarPanel1.Text = "For Help, press F1."
    Any thoughts or links where I can find a decent tutorial ?
    Last edited by teamdad; Jun 18th, 2004 at 10:01 PM.

  2. #2
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552
    VB Code:
    1. StatusBarPanel1.Icon = New Icon("sample.ico")
    provided that sample.ico is in your bin folder

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    127
    Works great.... but say I wanted to reset the StatusBarPanel to not having an icon in it after I have used this code to put an icon in the panel?
    Code:
     StatusBarPanel1.Icon = New Icon("sample.ico")
    More or less resetting it back to the orignal blank panel before the icon was put into it.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Try this . I'm not at my dev computer to test it .
    VB Code:
    1. StatusBarPanel1.Icon = Nothing

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    127

    Post

    Pirate to the rescue again!!!

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