CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: System Drawing

  1. #1
    Join Date
    Apr 2013

    Question System Drawing

    Hi, perhaps someone can get me started with the following. I have a windows form with an empty picturebox, 4 textboxes with editable values and two buttons. If one button (draw line) is clicked than a line is drawn using the values of the 4 textboxes (start-x, start-y, end-x and end-y), when the button is clicked again another line is drawn (with other changed textbox values). If the other button (cancel) is clicked the most recent drawn line is deleted, if the cancel button is clicked again the second most recent line is deleted, etc… I can’t figure out how to get started.

  2. #2
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: System Drawing

    Sounds like a hard way to do that. Why not just click on the screen, and use that as the new GOTO location (Once it's initialized with the first spot). You'd have to enter 4 numbers, click the button, enter 4 more numbers, click the button, etc. Check out the samples here

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.