Raddict
Active member
I tried to make a form that would become semitransparant when moved.
But I couldn't get it to work, when I put the command in Move or LocationChanged it results in an error.
when I use the command behind the MouseDown it works.
But I couldn't get it to work, when I put the command in Move or LocationChanged it results in an error.
VB.NET:
Private Sub Form1_LocationChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.LocationChanged
Form1.ActiveForm.Opacity = 0.5
End Sub
Private Sub Form1_Move(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Move
Form1.ActiveForm.Opacity = 0.5
End Sub
when I use the command behind the MouseDown it works.