Results 1 to 2 of 2

Thread: Manipulating GDI+ Drawings

  1. #1

    Thread Starter
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Manipulating GDI+ Drawings

    VB version here.

    The attached project demonstrates how the user can manipulate GDI+ drawings as though they were actual objects. It was created in VS 2008 but all the code should be compatible with VS 2005.

    The application is supposed to behave, in a very rudimentary way, like the VS WinForms designer. You can click and drag to draw boxes on the form. The boxes will be drawn with an apparent z-order, where newer boxes appear to be in front of older ones. You can right-click on a box and select "Bring to Front" or "Send to Back" to change that z-order. You can also click the button on the tool bar to put the application into drag mode, which allows you to click and drag a box to move it around the form.

    For an explanation of the genesis of this code, visit my blog.
    Attached Files Attached Files
    Last edited by jmcilhinney; Oct 23rd, 2009 at 07:56 AM. Reason: Provided some explanation of how to use the app; Added blog link

  2. #2
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Manipulating GDI+ Drawings

    As also posted in the VB.NET section of this codebank submission, I have made a very much extended version of this sample. It features multiple shapes (easily extensible with your own shapes), drag handles, resizing, and much more



    Check it out here!

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