Windows Develop Bookmark and Share   
 index > Windows Forms Designer > how to change the layout of the form
 

how to change the layout of the form

Hi,

it seems we can change the background color and image of a form. However, I could not find how to change the whole layout of the form...that is, how to change the color of the top strip with "minimize/maximize/close" on the right..

It willlook strange or not consistence if I change the background image and color with the original top strip...

Besides, there are 3 forms in my application, how can I use the methods and values from one form to another? The 3 forms are different...

Also, how to make one form minimize when I load another main window?

Since there are 3 forms, I want to put them in suitable position on the screen, how to change the form's loaction?

Thanks a lot!

Pockey  Tuesday, September 05, 2006 2:53 AM

I simply solved my problem by following codes(modification will be made if I learn some know ways):

private void Form1_Load(object sender, EventArgs e)
{
//manually decide the location of the form
Location = new System.Drawing.Point(10, 10);
Application.EnableVisualStyles();
FormBorderStyle = FormBorderStyle.None;

this.ClientSize = this.BackgroundImage.Size;
}

Pockey  Thursday, September 14, 2006 3:30 AM

I simply solved my problem by following codes(modification will be made if I learn some know ways):

private void Form1_Load(object sender, EventArgs e)
{
//manually decide the location of the form
Location = new System.Drawing.Point(10, 10);
Application.EnableVisualStyles();
FormBorderStyle = FormBorderStyle.None;

this.ClientSize = this.BackgroundImage.Size;
}

Pockey  Thursday, September 14, 2006 3:30 AM

You can use google to search for other answers

Custom Search

More Threads

• How to draw line on over the CheckBoxes?
• AutoSize for DatagridView
• Working with Created Property of Text Box
• Design time subcomponents
• Set Property Browsable to make false at runtime
• New .Net Framwork 1.1 bug
• User Control child controls move around
• Relocating Resized Controls
• Rich text box selection problem
• Button moves in Child Forms