Minimize to system tray

T

Tibby

I've got the minimize portion down, but can't get the opposite to
happen when I double-click on the Notify Icon. here's my code:

Private Sub PlainDialer_Resize(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Resize
If Me.WindowState = FormWindowState.Minimized Then
Me.ShowInTaskbar = False
End If
End Sub

Private Sub niGD_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles niGD.DoubleClick
If Me.WindowState = FormWindowState.Minimized Then
Me.WindowState = FormWindowState.Normal
Me.Activate()
Me.ShowInTaskbar = True
End If
End Sub

I can see it in the taskbar, but that's it :(


Thanks,
Tibby
 
C

Cor Ligthert

Tibby,

For me it works fine,

(I made the notificon icon visible and invisible to make it even more
showable)

I hope this helps?

Cor
 
T

Tibby

Tibby,

For me it works fine,

(I made the notificon icon visible and invisible to make it even more
showable)

I hope this helps?

Cor
Well, I've been having some small issues with my Xp box, so that may
be the root of the problem, unless there's something else in the code
goofing things up. Now that I know that code does work, I will have
to pick apart the program line by line and see what I can find, maybe
it's in the paint events.....

Thank Cor,
Tibby
 
T

Tibby

Tibby,

For me it works fine,

(I made the notificon icon visible and invisible to make it even more
showable)

I hope this helps?

Cor
I'm starting to think it's just my PC, which would be kinda wierd,
..NET is supposed to alliviate those problems... Hmmmmmmm
Tibby
 

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

Top