Opacity adjustment of the panel background in Vb.net

Asked

Viewed 123 times

0

Hello. I am trying to make an application in VB.NET where it is necessary to adjust the opacity of just the background of some "panels" so that they are transparent but not invisible. Following example: inserir a descrição da imagem aqui

1 answer

0


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

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
  • Thank you! Just one more question: is there any way to apply this transparency to the bottom of a form? I could not do as I did in panels.

  • There is. For the property Opacity: Form1.Opacity = 0.5

Browser other questions tagged

You are not signed in. Login or sign up in order to post.