Transparent images in VB
Posted: Tue Apr 29, 2008 1:10 pm
I'm trying to get an image to fade from solid to transparent. I'm using photoshop to make the image but when I use it in VB it makes the transparent part white. I've tried using different formats and using an alpha layer.
Also I'm trying to make a TrackBar control the opacity of the form but I can't seem to get it to work right. This is what I've done:
Doing that just makes the opacity 0 or 100, I've set the maximum value to 100 and the min to 0 but that still didn't work.
Also I'm trying to make a TrackBar control the opacity of the form but I can't seem to get it to work right. This is what I've done:
Code: Select all
Private Sub TrackBar1_Scroll(ByVal sender As Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
Form1.Opacity = Me.TrackBar1.Value
End Sub