Results 1 to 2 of 2

Thread: Simple noob problem-need help from you!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    6

    Simple noob problem-need help from you!!

    Hello guys,

    I want to make quite a simple program where I want to put an angle (from 0-90 degrees) into a box and then click a button.

    When that button is clicked the angle of an inclined planes changes accordingly.

    I.e. I want a line to move up by a certain angle

    if you look at this picture:

    http://www.engineeringtoolbox.com/do...ined-plane.png

    You can see what I mean better.

    I simply want the angle of that line to change as I change the angle in the textbox.

    I have tried to do this using the visual basic power packs to draw the line, and then I tried to figure out how to make the that line move as I change the angle.

    I keep changing the y2 co-ordinate and it the stretches upwards as I decrease the values which of course is not good....

    any idea's?

  2. #2
    Fanatic Member Vectris's Avatar
    Join Date
    Dec 2008
    Location
    USA
    Posts
    941

    Re: Simple noob problem-need help from you!!

    So what's the problem with changing the y2 coordinate. All you said was that decreasing it makes the line go up "which isn't good". What isn't good is the description of your problem. Maybe you want to make the line go down? Well have you tried increasing y2?
    If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!

    If someone helped you out, click the button on their post and leave them a comment to let them know they did a good job

    __________________
    My Vb.Net CodeBank Submissions:
    Microsoft Calculator Clone
    Custom TextBox Restrictions
    Get the Text inbetween HTML Tags (or two words)

Tags for this Thread

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