Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can u give me a idea about ...how to make fullscreen the forms in a button click



[Edit:subject changed-hey ,C# is new for me.............]
Posted
Updated 5-Feb-13 7:55am
v2
Comments
Jameel VM 5-Feb-13 9:03am    
Please change the question to : How to maximize the windows Form programmatically?

try this
C#
private void btnMax_Click(object sender, EventArgs e)
{
      this.WindowState = FormWindowState.Maximized;
}

Hope this helps
 
Share this answer
 
Comments
GopinathSk 5-Feb-13 9:07am    
hi...it works ..but the form1 remain same size..what i have to do??
Kishor Deshpande 5-Feb-13 9:12am    
It will only maximise the window containing that button and not form 1.
Kishor Deshpande 5-Feb-13 9:13am    
Gopinath, do you want to make all the forms in the application to be maximised?
GopinathSk 5-Feb-13 9:25am    
yes...i want to make the form1 into fullscreen by click button1
Jameel VM 5-Feb-13 9:24am    
if you want to set all the forms maximized write the above code in formLoad
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900