Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opacity of Buttons/TextBoxes - VB.NET

Is it possible to set the opacity of a button or textbox? I know that you can set the opacity for a form, but I'm not so sure about a button or textbox.

like image 753
lab12 Avatar asked Nov 14 '22 14:11

lab12


1 Answers

There is no way to set the opacity of any control in WinForms. Only Forms have the opacity property. If you want to make any control appear semi-transparent, you'll have to implement the whole control from scratch and that will most likely involve drawing the control as an image onto its parent.

Your alternative is to use WPF, which allows setting the opacity of controls.

like image 67
Alex Essilfie Avatar answered Dec 18 '22 17:12

Alex Essilfie