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.
Printable View
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.
VB Code:
Private Sub Form_Load() StatusBar1.Panels(1).Picture = LoadPicture("c:\temp\test.ico") End Sub
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.Quote:
Originally Posted by jfortes
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.
Yes i'm using VB.NET.
Is there a specific forum for VB.NET questions ?
If so I will post this question there.
thanks.
Yes there is a VB.Net forum right here: http://www.vbforums.com/forumdisplay.php?f=25Quote:
Originally Posted by jfortes