Treze
|
SÃO VICENTE SP - BRASIL
|
|
Postada em 18/02/2008 18:22 hs
eis o que você deseja Private OldX As Integer Private OldY As Integer Private DragMode As Boolean Dim MoveMe As Boolean
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) MoveMe = True OldX = X OldY = Y End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) If MoveMe = True Then Me.Left = Me.Left + (X - OldX) Me.Top = Me.Top + (Y - OldY) End If End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) Me.Left = Me.Left + (X - OldX) Me.Top = Me.Top + (Y - OldY) MoveMe = False End Sub
veja se serve
|
TÓPICO EDITADO
|
|
|
|