Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,299 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 2,471 people online right now. Registration is fast and FREE... Join Now!




Form settings on startup

 
Reply to this topicStart new topic

Form settings on startup

reCoded
20 Aug, 2008 - 02:53 PM
Post #1

D.I.C Head
**

Joined: 25 Feb, 2008
Posts: 159

Hey guys,

Sorry for the dumb question, but how can I have my form be maximized on form_load?

Thanks,
reCoded
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Form Settings On Startup
20 Aug, 2008 - 03:32 PM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,983



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
In the Properties Window set the WindowState property to Maximized like in the image below

Attached Image
User is offlineProfile CardPM
+Quote Post

gbertoli3
RE: Form Settings On Startup
20 Aug, 2008 - 09:36 PM
Post #3

DIC at Heart + Code
Group Icon

Joined: 23 Jun, 2008
Posts: 1,046



Thanked: 17 times
Dream Kudos: 950
My Contributions
Or if you want to do it dynamically you could do
CODE

this.WindowState = System.Windows.Forms.FormWindowState.Maximized;  //Maximized
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;  //Minimized
this.WindowState = System.Windows.Forms.FormWindowState.Normal;     //Normal


Hope this helps
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 06:19AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month