When a panel or other control overlay is resolved, the background of the control is transparent and the background color of the display is the background color of the form

Source: Internet
Author: User

Before for the sake of the diagram, directly to the form of the background image set, found that this time the form of the operation of the special lag, and then put a PictureBox control, the control is loaded by the picture as the background.

Now that the lag is resolved, another problem arises when the runtime, because the Panel control background color setting is transparent, finds that the background color it displays is the background color of the form, rather than the picture inside the PictureBox.

I've been thinking about this for a long time and now I've found a way. Set the control under the panel to parent.

This.panel1.Parent = This.picturebox1;

http://www.cnblogs.com/chengxiaohui/articles/1921608.html bo Master: fumen

When a panel or other control overlay is resolved, the background of the control is transparent and the background color of the display is the background color of the form

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.