How to set opacity or transparency of windows form in .net

If we want to set transparency of the windows form , then we can use Opacity property

 This property enables you to specify a level of transparency for the form and its controls. This property differs from transparency provided by the TransparencyKey which only makes a form and its controls completely transparent if they are the same color as the value specified in the TransparencyKey property.

We can set the its value between 0 to 100 percent (0.0 to 1.0).if we set the this property to a value of 0 percent (0.00) then it  makes the form completely invisible

 

In following example we can set the form opacity between 15 to 100 percent through Trackbar control.
 

 Private Sub frmMainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        TrackBar1.Value = 100
        txtOpecity.Text = "100 %"
    End Sub 

  

 Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
        Dim opecity As Integer = TrackBar1.Value
        Me.Opacity = opecity / 100
        txtOpecity.Text = opecity & " %"
    End Sub
  • Hungry_Florence

    Is there a way to set the *FORM’S* transparency (like the title promises) but not destroy
    everything on the form that we are trying to read/use/see?

    Otherwise, this is unless.