Rocket® InfoConnect Desktop (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
WindowState Property
In This Topic
Gets or sets the application window state. The window state can be Normal, Minimized,
or Maximized.
Syntax
'Declaration
Property WindowState As FormWindowState
'Usage
Dim instance As IFrame Dim value As FormWindowState instance.WindowState = value value = instance.WindowState
FormWindowState WindowState {get; set;}
Property Value
The default is Normal (a default sized window).Example
void Sample_Frame_WindowState() { Application app = MyReflection.ActiveApplication; IFrame frame = (IFrame)app.GetObject("Frame"); Console.Write("Press 'm' to maximize the InfoConnect Desktop window..."); ConsoleKeyInfo cki = Console.ReadKey(); if (cki.KeyChar == 'm') frame.WindowState = System.Windows.Forms.FormWindowState.Maximized; else frame.WindowState = System.Windows.Forms.FormWindowState.Normal; }
See Also