Connecting Tech Pros Worldwide Forums | Help | Site Map

NotifyIcon - show hiden window by new exe

Mrozu
Guest
 
Posts: n/a
#1: Feb 11 '08
Hi,

VB.NET 2003

I'v got NotifyIcon, on minimize button click, my app is hiding to tray
by following code:

ni.Visible = True
Me.Hide()
Me.WindowState = FormWindowState.Minimized


here, ni is NotifyIcon control.

my application, before start must check if my program is already
running(minimized in tray, can't use FindWindow), and if is it true,
it should close itself and show that instance from tray. is it
possible?

I know how to check if is it running, but i can't show window from
tray.

I tried ShowWindow API function, but it doesn't work for me.

does anybody can help me?

Pozdrawiam - Greatings in polish

Thank you,
Mrozu

Closed Thread