Hi everybody,
what is the best way to minimize a form (top level window) ?
FormActivate() restores a minimized form, but there seems to be no FormMinimize() !?
Thanx
Minimizing a form ?
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
You are right, there are no explicit functions to maximize/minimize a form. You can, however, send keystrokes that do the same using the ControlSendKeys method. Use the following string for the keys parameter ('%' means holding the Alt-key):
"%{SPACE}x" to Maximize
"%{SPACE}n" to Minimize
"%{SPACE}r" to Restore a form.
Regards,
Alex
Ranorex Support Team
"%{SPACE}x" to Maximize
"%{SPACE}n" to Minimize
"%{SPACE}r" to Restore a form.
Regards,
Alex
Ranorex Support Team
-
- Posts: 15
- Joined: Wed May 23, 2007 11:12 pm