Click here to Skip to main content
11,927,324 members (52,808 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
can u give me a idea about to make fullscreen the forms in a button click

[Edit:subject changed-hey ,C# is new for me.............]
Posted 5-Feb-13 4:00am
Edited 5-Feb-13 8:55am
JemiM 5-Feb-13 9:03am
Please change the question to : How to maximize the windows Form programmatically?
Rate this: bad
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
GopinathSk 5-Feb-13 9:07am 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
JemiM 5-Feb-13 9:24am
if you want to set all the forms maximized write the above code in formLoad
JemiM 5-Feb-13 9:30am
in which form you try to add the above code?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 5 Feb 2013
Copyright © CodeProject, 1999-2015
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