Hi alll,
How can I minimize a form by code?
Thanks in advance.
Printable View
Hi alll,
How can I minimize a form by code?
Thanks in advance.
Form1.WindowState = 1
did it help
See this link.
here are the 3
'Make form Normal
Form1.WindowState = 0
'Make form minimize
Form1.WindowState = 1
'Make Form Maximize
Form1.WindowState = 2
why use all that code when you could use one simple line of code
Form1.WindowState = 1
Sorry. For some reason, I must have read it as "Minimize to Tray".
It worked.
Thanks.
hehe ok cool ill check out that tray one also and your welcome ritaab
i like that tray icon stuff wasnt as hard i i thought