Hello, Thanks for checking out the thread , and hopefully someone can point me in the right direction....
Ok I have a form that I need to drag and the form im using i have themed.... so i try using the following code with no success.....
Ok I have a form that I need to drag and the form im using i have themed.... so i try using the following code with no success.....
Code
Dim drag As Boolean
Dim mousex As Integer
Dim mousey As Integer
Private Sub PositronTheme2_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown
drag = True
mousex = Windows.Forms.Cursor.Position.X - Me.Left
mousey = Windows.Forms.Cursor.Position.Y - Me.Top
End Sub
Private Sub PositronTheme2_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
If drag Then
Me.Top = Windows.Forms.Cursor.Position.Y - mousey
Me.Left = Windows.Forms.Cursor.Position.X - mousex
End If
End Sub
Thinking Of a Name Change ....



