-
How can i add dialog editing features to my application, like the one VB itself provides.
For example .. add a square around a form, which can be used to resize it.
Dropping and moving controls on to the form.
Add a square around each control so that it can be resized.
Disable controls ... but do not gray them out.
And anything else ... Please HELP!
-
To move Controls, use the Drag method. Make a PictureBox called Picture1 and put this code into the Form.
Code:
Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)
'Move the object to it's new location
Source.Move X - (Source.ScaleWidth / 2), Y - (Source.ScaleHeight / 2)
End Sub
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Drag Object
Picture1.Drag
End Sub