|
-
Jul 20th, 2010, 12:37 PM
#1
Thread Starter
Member
[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
-
Jul 20th, 2010, 06:59 PM
#2
Re: Application Disappearing
Do you have anything in the StartupNextInstance event handler?
-
Jul 21st, 2010, 06:00 PM
#3
Thread Starter
Member
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
-
Jul 22nd, 2010, 07:24 AM
#4
Thread Starter
Member
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.
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
|