Why am I getting “Control does not support transparent background colors”?

后端 未结 5 1714
北海茫月
北海茫月 2020-12-11 23:24

I am working on a C# - Winforms application and attempting to set the background colour of a read-only text box like so...

txtMyBox.BackColor = Color.FromNam         


        
5条回答
  •  执念已碎
    2020-12-11 23:42

    ColorTextBox.BackColor = colorDialog1.Color;
    textBox2.BackColor = System.Drawing.Color.FromArgb(
                         ColorTextBox.BackColor.ToArgb()); 
    

提交回复
热议问题