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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

minimize form programatically

Status
Not open for further replies.

luvcloud

Programmer
Apr 23, 2002
24
MY
i have created a shaped form, and as a result i do not have the standard maximize/minimize/close buttons that usually appear on the title bar. i've thought of putting buttons to create that function. But how do i minimize or maximize the form from the code itself? is that possible?
 
Hi luvcloud

In Borlands VCL, which is a lot like .Net (also with Anders Hejlsberg behind the design) the Application object has a minimize/ maximize function, this is however not the case in .net ???!!!
If you need an urgent solution, and is your program is only for windows platforms (don't think .net will run on anything else that windows at the moment)
Try using the win32 API-call ShowWindow() with the SW_SHOWMINIMIZED parameter.
Otherwise happy hunting, and please post the solution when you find it.

Klaus Grønbæk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top