hide icon in status bar panel

  • Thread starter Thread starter alex
  • Start date Start date
A

alex

Hi,
how can I hide the icon in the status bar?
I have added an icon but only want to display it if needed.

Thanks for any advise
Alex
 
Hi Alex,

me.statuspanel.Icon = nothing works for me.

I hope this helps a litte bit.

Cor
 
Thanks Cor,
but how do I swtich it on again ?
Sorry, still new to VB.

Alex
 
Hi Alex,

Something like:

\\\
Private busyIcon As New System.Drawing.Icon("icoBusy.ico")

Private sub X (byval iconOn as boolean)
If iconOn then
Me.statuspanel.Icon = busyIcon
else
me.statuspanel.icon=nothing
end sub
///

I hope this helps a little bit?
Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top