Panel Background Opacity Adjustment in vb.net

0

Hello. I am trying to make an application in VB.NET where it is necessary to adjust the opacity of just the bottom of some panels so that they are half transparent but not invisible. Here is an example:

    
asked by anonymous 05.12.2017 / 16:37

1 answer

0

You can adjust opacity properties [alpha] in panel color:

Dim Opacity As Int32 = 50                      ' valor em porcentagem
Me.Color = Color.White 
Panel1.Color = Color.FromArgb(50, Color.Black) 
Panel2.Color = Color.FromArgb(25, 100, 51, 62) ' opacidade-vermelho-verde-azul
    
09.12.2017 / 02:40