|
-
Jun 17th, 2004, 08:59 PM
#1
Thread Starter
Lively Member
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.
-
Jun 17th, 2004, 09:25 PM
#2
Fanatic Member
VB Code:
StatusBarPanel1.Icon = New Icon("sample.ico")
provided that sample.ico is in your bin folder
-
Jun 18th, 2004, 07:26 PM
#3
Thread Starter
Lively Member
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.
-
Jun 18th, 2004, 07:30 PM
#4
Sleep mode
Try this . I'm not at my dev computer to test it .
VB Code:
StatusBarPanel1.Icon = Nothing
-
Jun 18th, 2004, 07:53 PM
#5
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|