Hi Everybody, Im making a kind of notepad in VB 2008.
But the problem is ive maked an Form whith a trackbar and a Buttton,
its supposed that the trackbar should be the opacity value.
The trackbar is changed to rigth to left,
It comes no errors it just wont work,
(TB1 is the name of the trackbar!) the code is:

Public Class Form3

    Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TB1.Scroll

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Form1.Opacity = TB1.Value()
    End Sub
End Class

MVH Dajak

Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
    Form1.ActiveForm.Opacity = TrackBar1.Value / TrackBar1.Maximum
End Sub

First of all thanks for the code, but there was one error...
it was quite easy to fix:
youmuse remove the
Form1.ActiveForm.Opacity = TrackBar1.Value / TrackBar1.Maximum

This question has already been answered. Start a new discussion instead.