Results 1 to 2 of 2

Thread: Dialog Editing Features!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Lahore, Pakistan
    Posts
    9

    Question

    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!

  2. #2
    Guest
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width