Results 1 to 4 of 4

Thread: VB2005 Express - Drag & Resize a Picture Box with Mouse

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Location
    Germany, near Munich
    Posts
    172

    VB2005 Express - Drag & Resize a Picture Box with Mouse

    Hi all,

    as a VB Rookie I´ve written some code to drag and resize a picture box with the mouse.

    Open the enclosed attachment, run the project, click the white picture box and drag and resize it.

    I would like to get your comments.

    The next step in development is to make a control of it which can be placed in the IDE toolbox.


    Thanks & Greetings,

    The Tree
    Attached Files Attached Files
    ********* Look at http://www.bahai.org - and enjoy it! *********

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Location
    Germany, near Munich
    Posts
    172

    Re: VB2005 Express - Drag & Resize a Picture Box with Mouse

    Hi all,

    here´s a new version. Now drag and resize stops, when the picture box contacts Form1´s borders.

    I would like you to give some feedback .


    Thanks & Greetings,

    TheTree
    Attached Files Attached Files
    ********* Look at http://www.bahai.org - and enjoy it! *********

  3. #3
    New Member
    Join Date
    Mar 2014
    Posts
    1

    Re: VB2005 Express - Drag & Resize a Picture Box with Mouse

    TheTree

    I have searched and search for an example of how drag and resize a PictureBox using the mouse. Your project code is the only example that I have found that is simple and WORKS!

    prosys-55

  4. #4
    Registered User
    Join Date
    Apr 2015
    Posts
    1

    Re: VB2005 Express - Drag & Resize a Picture Box with Mouse

    This is a very good piece of code. It is really not a simple task to add a resize frame to a picturebox.

    Now it would be perfect, if someone could create a new picturebox control, that inherits from the old picturebox control and add the functionality described here.

    The benefit would be, that you can use the extemded picturebox in your application multiple times only by instanciating it.

    This would be perfect for an application I am about to develop, where you can place multiple pictureboxes inside a parent picturebox to create a photo collage. With the functionality described here, it is possible to easily resize the pictures.

    Later the collage should be rendered to a final bitmap.

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