Programming FAQ record: events with clearly responded buttons, but cannot be captured by programs

Source: Internet
Author: User
For example, I wrote a private void button#click (Object sender, system. eventargs E)
There is a corresponding process for processing data in it. During debugging, we often set breakpoints in it and monitor its variables. Occasionally, this problem occurs when the button#click process is clearly found during debugging, but the breakpoint I set is not captured. Then the problem is found in # region web form designer generated code. You need to check whether private void initializecomponent () has this process. If this problem occurs, there is no such problem. How can we let him out? You can go to the design page and double-click the button again to let him enter this method, this method is automatically registered in private void initializecomponent.
I think this problem may not be taken into account by Microsoft when simulating the event-driven model. In short, writing BS is a headache, and there are far more problems than CS.

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.