C # multi-form switching and window flickering

Source: Internet
Author: User

Problem Background:

Form1 contains a splitter control, which divides form1 into the left and right sides. There are some labels in the left pane, and the right pane is used to display other forms. To implement this, click the label in the left pane, then, the corresponding form (form2, form3....) is displayed in the right block ....).

Problematic design:

Initialize the corresponding form in the Click Event of the label on the Left Block of form1, that is, (new form2 or form3)

Consequence:

When I click on the label, the wholeProgramThe window will flash, not nice

Solution:

Other forms are initialized in the load event Method of form1, but attribute settings and visibility can be left in the Click Event of the label.

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.