-1

Can anyone tell me how to minimize our form before taking a screen shot. I'm setting minimizebox=true; but the form disappears on doing so. I want it to be visible in the task bar..

Nadeem_MK
  • 7,533
  • 7
  • 50
  • 61
  • Look at the answer to this more general question (more general meaning _I want to minimize a window when I want to, that is not the main subject of the question_: http://stackoverflow.com/questions/2841258/minimize-a-window-in-wpf Please try googling the question before asking it here. – Eduard Dumitru Sep 11 '13 at 08:42
  • Have you tried setting `WindowState = WindowState.Minimized;` on your window? – mgttlinger Sep 11 '13 at 08:42

2 Answers2

1

You can set the windowState to Minimize.

window.WindowState = WindowState.Minimized;
Lokesh
  • 301
  • 3
  • 19
0

you must set the Windows state

this.WindowState = FormWindowState.Minimized;
fecub
  • 945
  • 10
  • 27
  • yes, I have tried this. but when i compile it i cant see the form again. i want it to be visible down at the taskbar.. – Abid Mohammed Sep 11 '13 at 09:07
  • It's almost that, but it's not exactly that... I'm afraid you didn't read the tag carefully. The question is related to **WPF** not `WinForms`. – Chris Sep 11 '13 at 09:11
  • look here: http://www.codeproject.com/Articles/27599/Minimize-window-to-system-tray and here: http://alperguc.blogspot.de/2008/11/c-system-tray-minimize-to-tray-with.html – fecub Sep 11 '13 at 09:12