Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 5-Feb-13 3:00am
Edited 5-Feb-13 7:55am
v2
Comments
JemiM at 5-Feb-13 9:03am
   
Please change the question to : How to maximize the windows Form programmatically?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

try this
private void btnMax_Click(object sender, EventArgs e)
{
      this.WindowState = FormWindowState.Maximized;
}
Hope this helps
  Permalink  
Comments
GopinathSk at 5-Feb-13 9:07am
   
hi...it works ..but the form1 remain same size..what i have to do??
Kishor Deshpande at 5-Feb-13 9:12am
   
It will only maximise the window containing that button and not form 1.
Kishor Deshpande at 5-Feb-13 9:13am
   
Gopinath, do you want to make all the forms in the application to be maximised?
GopinathSk at 5-Feb-13 9:25am
   
yes...i want to make the form1 into fullscreen by click button1
JemiM at 5-Feb-13 9:24am
   
if you want to set all the forms maximized write the above code in formLoad
JemiM at 5-Feb-13 9:30am
   
in which form you try to add the above code?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

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



Advertise | Privacy | Mobile
Web02 | 2.8.141022.1 | Last Updated 5 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100