|
-
Apr 25th, 2005, 05:04 AM
#1
Thread Starter
Member
Load icon at runtime in StatusBar
Hi ,
Does anyone know how to load an icon into the StatusBar, at runtime ?
Element to be loaded: StatusBar1.Panels(0).Icon
What's the command to load the icon?
Thanks,
Joao.
-
Apr 25th, 2005, 07:59 AM
#2
Re: Load icon at runtime in StatusBar
VB Code:
Private Sub Form_Load()
StatusBar1.Panels(1).Picture = LoadPicture("c:\temp\test.ico")
End Sub
-
Apr 26th, 2005, 01:31 AM
#3
Thread Starter
Member
Re: Load icon at runtime in StatusBar
Hi, i tried using your code, but I'm getting a compilation error:
" LoadPicture is not defined " .
Where is the LoadPicture defined ? In any standard Namespaces ? Or is it your own customized code?
Please let me know.
Thanks,
Joao.
-
Apr 26th, 2005, 05:41 AM
#4
Re: Load icon at runtime in StatusBar
 Originally Posted by jfortes
Hi, i tried using your code, but I'm getting a compilation error:
" LoadPicture is not defined " .
Where is the LoadPicture defined ? In any standard Namespaces ? Or is it your own customized code?
Please let me know.
Thanks,
Joao.
LoadPicture is a built in VB Function that has been around for ever. Are you using Rhino's code just as it was posted? His code example works just fine for me.
-
Apr 26th, 2005, 08:57 AM
#5
Re: Load icon at runtime in StatusBar
Since this is the Classic VB Forum I need to ask if you're using VB.Net? In that case you should post your question in that forum instead.
-
Apr 26th, 2005, 04:58 PM
#6
Thread Starter
Member
Re: Load icon at runtime in StatusBar
Yes i'm using VB.NET.
Is there a specific forum for VB.NET questions ?
If so I will post this question there.
thanks.
-
Apr 26th, 2005, 05:03 PM
#7
Re: Load icon at runtime in StatusBar
 Originally Posted by jfortes
Is there a specific forum for VB.NET questions ?
Yes there is a VB.Net forum right here: http://www.vbforums.com/forumdisplay.php?f=25
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
|