Results 1 to 2 of 2

Thread: Mouse Movement Problems

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2009
    Location
    CT
    Posts
    4

    Mouse Movement Problems

    I Am Using VB.NET 2008 Express Edition, and am trying to make a program that controls the mouse position with a joystick on the a nintendo classic controller, which returns a value between [ -.54 ] and [ +.54 ].

    I wanted so that the position vertically of the mouse on the screen = vertical position on the screen + (joystickvalue * 100)

    I have searched many forums and still can not find an answer on how to set the cursor position.

    i have found e.location.x that says it is a reador wright variable, but when i set it equal to a number i get an error saying
    "Expression is a value and therefore cannot be the target of an assignment."

    Any Help Is Greatly Appreciated
    Thanks
    ~Matt

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

    Re: Mouse Movement Problems

    Use this

    Code:
            Cursor.Position = New Point(10, 10)
    Just replace the 10s with your joystick formula.
    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)

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