Results 1 to 3 of 3

Thread: [Resolved]Graphics question.

  1. #1

    Thread Starter
    Hyperactive Member LawnNinja's Avatar
    Join Date
    Aug 2006
    Posts
    446

    Smile [Resolved]Graphics question.

    In my app I have 4 textboxes. 1 picturebox and a combobox. you load pictures into the picture box, then use the combobox to set your colour for a box. then you drag over the picturebox and it makes a box appear.....
    Then you press get info and it puts the top left x and y location into
    textbox 1 and textbox 2. In textbox 3 and 4 it puts the bottom right x and y location. I want textbox 3 and textbox 4 to tell length and width of the box you created instead. Can this be done? If you dont understand just download my project
    Attached Files Attached Files
    Last edited by LawnNinja; Oct 7th, 2006 at 10:25 AM.

  2. #2
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Graphics question.

    Try this:
    VB Code:
    1. Text3.Text = lSizeVar(2) - lSizeVar(0)
    2. Text4.Text = lSizeVar(3) - lSizeVar(1)

  3. #3

    Thread Starter
    Hyperactive Member LawnNinja's Avatar
    Join Date
    Aug 2006
    Posts
    446

    Re: Graphics question.

    Thanks gavio

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