hi all,
I am trying to use Drag & Drop with Frame control in VB6.0 Below is the code is use. Somehow the frame gets placed at wierd places on the form. Frame Drag mode initally is Manual and Scale Mode for the Form is Twip.
'===========================================================
Private Sub Frame1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Frame1.Drag 1
DragX = X
DragY = Y
Ens Sub
Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)
Source.Move (DragY - Source.Width / 2), (DragX - Source.Height / 2)
End Sub
'===========================================================
I have gone thru examples of Drag & drop with Pic Boxes but that is somethig else.
Is the problem with moving controls because of the ScaleMode difference or what ???
Please Help.
Cheers !!!
Niraj >
:0>
I am trying to use Drag & Drop with Frame control in VB6.0 Below is the code is use. Somehow the frame gets placed at wierd places on the form. Frame Drag mode initally is Manual and Scale Mode for the Form is Twip.
'===========================================================
Private Sub Frame1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Frame1.Drag 1
DragX = X
DragY = Y
Ens Sub
Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)
Source.Move (DragY - Source.Width / 2), (DragX - Source.Height / 2)
End Sub
'===========================================================
I have gone thru examples of Drag & drop with Pic Boxes but that is somethig else.
Is the problem with moving controls because of the ScaleMode difference or what ???
Please Help.
Cheers !!!
Niraj >