Main Menu Control MainMenu
Toolbar Control ToolStrip
Status bar control StatusStrip
The Size, Location property requires new, and the other does not require
When you click the MenuItem event for a menu item, the corresponding form dimension information is displayed in the status panel
this.toolstripstatuslabel1.text= "Large form";
Private voidForm1_Load (Objectsender, EventArgs e) { This. Size =NewSize ( -, $); } Private voidToolstripmenuitem1_click (Objectsender, EventArgs e) { This. Size =NewSize ( -, -); This. toolstripstatuslabel1.text="Large Form"; } Private voidToolstripmenuitem2_click (Objectsender, EventArgs e) { This. Size =NewSize ( -, $); This. Toolstripstatuslabel1.text ="form in"; } Private voidToolstripmenuitem3_click (Objectsender, EventArgs e) { This. Size =NewSize ( Max, -); This. Toolstripstatuslabel1.text ="Small Form"; }
Background color
This. BackColor = color.red;
Front view
This. ForeColor = Color.Black;
C # certification 3 chapters