C# - Transparent Form

后端 未结 2 1273
粉色の甜心
粉色の甜心 2020-12-09 11:15

I currently have a Form with all the desired effects except one. The current form consists out of a menustrip at the top with a panel underneath which contains labels and pi

2条回答
  •  眼角桃花
    2020-12-09 12:07

    Be careful when you will choosing backcolor. Chose a Backcolor to differ from your text, images, and any control's color that mean choose a color that you will never going to use in your Form and I think Fuchsia/ lime will be the best choice.For choosing a backcolor codes are below:

    this.BackColor = Color.Fuchsia;
    

    and then Make that color to Transparent by using that codes:

    TransparencyKey = Color.Fuchsia;
    

提交回复
热议问题