How to do a background for a label will be without color?

后端 未结 5 625
情书的邮戳
情书的邮戳 2020-12-30 23:00

I want to add a label to my form , and I want it without any color- I want just it\'s text to be visible, I don\'t find this option in the label\'s properties, can anyone he

5条回答
  •  失恋的感觉
    2020-12-30 23:48

    Generally, labels and textboxes that appear in front of an image is best organized in a panel. When rendering, if labels need to be transparent to an image within the panel, you can switch to image as parent of labels in Form initiation like this:

    var oldParent = panel1;
    var newParent = pictureBox1;
    
    foreach (var label in oldParent.Controls.OfType

提交回复
热议问题