Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to maximize form in .NET

Status
Not open for further replies.

vladibo

Programmer
Sep 14, 2003
161
CA
Sorry, may be my question is stupid but I couldn't find how to maximize my from from the creation. When I careate my form like:
form = new Form();
it is not maximized by default, so to maximize it one needs to click on Maximize button. But can I do it directly?
 
use Show(). But to maximize, get the HWND handle by using mrhod Handle and use ShowWindow(hWnd, SW_MAXIMIZE)

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top