[RESOLVED] Application Disappearing
Hi, so I've got my application to minimize to tray and here is the code to unminimize it..
Code:
Me.Show()
Me.WindowState = FormWindowState.Normal
nfi.Visible = False
First off I have 'Make single instance application' checked.
So here's the problem..
I minimize my application to tray
I double click to start another instance of my app which doesn't do anything because I have it checked not to. But the problem I'm having is that when I click to unminimize my application from the system tray (code above) my application and the notify icon disappear and I have to close my application through task manager.
It only does this after I've clicked to start another instance of my app
Can anyone explain what might be wrong?
Thanks
Re: Application Disappearing
Do you have anything in the StartupNextInstance event handler?
Re: Application Disappearing
No I don't.
I've tried using
me.visible = true
&
me.show
but it still stays invisible so it's not hidden or anything.
I even tried changing the location of my app when you click to unminimize from tray just in case it went off the screen or something but still no luck
Re: Application Disappearing
I fixed it in such a simple way :P
just added my unminimize from tray code into my StartupNextInstance event and problem is sorted.