1

I execute my Program, which later displays a Form. Once I minimize it, it gets shrinked into the systemtray. Doubleclicking my systemtray-icon does:

Show();
Activate();
WindowState = FormWindowState.Normal;

Which shows the Form again. Works.

Question: How can this be done while executing the same exe again, instead of doubleclicking the trayicon?

Problem: ShowWindow(handle, SW_MAX) displays the window, but some elements in the form are missing. NOTE: This does not happen, when i doubleclick the tray-icon.

Joel
  • 1,725
  • 3
  • 16
  • 34

1 Answers1

0

this will be helpful , you can find the current process is running or not when you re executing the process, if running you can maximize the current process Link

  • window is now maximised, but some elements in the form do not get displayed. Why can that be? – Joel May 20 '16 at 06:03