Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Code for minimize a form.

Posted on 2012-04-08
2
Medium Priority
?
217 Views
Last Modified: 2012-04-08
Dear Experts,

I have a dialogform with a contextmenu appearing when the user
clicks with the right button on the title bar of the dialogform.
In the dialogform I made an item called "Minimize". Now I
am looking for the code to minimize the form.

Peter
0
Comment
Question by:peterkiers
2 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 2000 total points
ID: 37821670
To Minimize:-
this.WindowState=FormWindowState.Minimized;

To Maximize:-
this.WindowState=FormWindowState.Maximized;
0
 
LVL 1

Author Comment

by:peterkiers
ID: 37821689
Thanks.

Peter
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question