Results 1 to 4 of 4

Thread: [RESOLVED] Application Disappearing

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2009
    Posts
    47

    Resolved [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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Application Disappearing

    Do you have anything in the StartupNextInstance event handler?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2009
    Posts
    47

    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

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2009
    Posts
    47

    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
  •  



Click Here to Expand Forum to Full Width