VB.NET: changing the opacity of the background

I have a VB.NET form with a red background and white text. I want to change the opacity of the background (not the text) to 50%; How can i do this?

+4
source share
1 answer

Use the Form.Opacity property.

Excerpt from the MSDN link:

 Dim instance As Form Dim value As Double value = instance.Opacity instance.Opacity = value 
+4
source

Source: https://habr.com/ru/post/1305145/


All Articles