About the debugging details of the applet made by C # And the visible attribute and several event methods in C,

Source: Internet
Author: User

About the debugging details of the applet made by C # And the visible attribute and several event methods in C,

1. During debugging, do not use the X number of the debugging program to close the program, but use the interface that comes with VS to stop debugging, that is, the small square. Otherwise, an exception will occur in the next debugging. If this happens, right-click the project name and click clean.

 

Ii. Visible attributes

Is "visible". If this. visible = false is set in the property, the current control will be hidden,

If it is set in the control condition, for example, In the While condition or in the for loop condition or if condition, Directly Writing visible is equivalent to writing this. visible = true;

 

3. Several small Methods

System. Threading. Thread. Sleep (3); pause the code for 3 milliseconds

Application. DoEvents (); enables your operating system to process other events outside your program. Otherwise, the operating system may not listen to other events.

 

16/2/29/23 :50

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.