-3

I have this application witch is auto-hidden. But I cant open it when I want to. Does someone know how to open a hidden application?

code if have to hide:

        protected override void OnVisibleChanged(EventArgs e)
    {
        base.OnVisibleChanged(e);
        this.Visible = false;
    }

So, if I run this application, the app completely disappear, not in the taskbar or whatever..

It runs like I want to, but cant open the app when I want to. Please help!

Jim Vercoelen
  • 1,048
  • 2
  • 14
  • 40
  • Is it a windows forms app? – terry Jul 03 '15 at 04:08
  • if the app is hidden at start. in what condition you want to make it visible? – M.kazem Akhgary Jul 03 '15 at 04:09
  • @JimVercoelen If it doesn't matter then why don't you start the application minimized instead of hidden? That way you can pull it open from the task bar. Otherwise, look into creating a tray icon or using hotkey combination that you can code to reveal your form. – learningcs Jul 03 '15 at 04:14
  • @JimVercoelen Fair enough, then a tray icon or hotkey combination is probably the way to go. – learningcs Jul 03 '15 at 04:26
  • Try a global hook, where you press certain keys at the same time, (for example, `Ctrl+Alt+G`) your unvisible form can show up. – Dean Seo Jul 03 '15 at 04:43

1 Answers1

1

A possiblity to design such type of apps is to open them with ShowInTaskBar = false and minimize in the system tray. Later on when needed, you can open it up from the system tray. Using this way you have an icon in the system tray, so whenever needed, one can open it up using context menu (given in the example).

Another example to Minimize in system tray.

Hope it helps!

Community
  • 1
  • 1
NeverHopeless
  • 11,077
  • 4
  • 35
  • 56