VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Move form in main area, not only in the title bar, but the entire thing.

by Nazadus Greom (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 12th April 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Move form in main area, not only in the title bar, but the entire thing.

API Declarations


Dim mousey As String

Rate Move form in main area, not only in the title bar, but the entire thing.



    If Button = vbLeftButton Then
        Me.Left = Me.Left - (mousex - X)
        Me.Top = Me.Top - (mousey - Y)
    End If
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    mousex = X
    mousey = Y
End Sub



Download this snippet    Add to My Saved Code

Move form in main area, not only in the title bar, but the entire thing. Comments

No comments have been posted about Move form in main area, not only in the title bar, but the entire thing.. Why not be the first to post a comment about Move form in main area, not only in the title bar, but the entire thing..

Post your comment

Subject:
Message:
0/1000 characters