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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 397
1 OriginalGriff 380
2 Shai Vashdi 280
3 Emre Ataseven 135
4 Abhinav S 128
0 Sergey Alexandrovich Kryukov 8,894
1 OriginalGriff 5,200
2 Peter Leow 3,955
3 Maciej Los 3,535
4 Abhinav S 3,208


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