C # certification 3 chapters

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.