VB 2008 Tutorial - Mouse Locker Tutorial
Use this board to post your code snippets - tips and tricks
Hi, Now i gonna teach you how to do mouse locker with CheckBox within an minute!, To make mouse lock, 1st add 1 CheckBox, 1 Timer
And in Form1_Load Events add this code into it
Then double click Timer and add this code into it
Note: To unlock mouse press M, And you can change the key in code!
*******************Thanks for reading my tutorial, I think this Tutorial will be most helpful to you!*******************
If you want any custom tutorial for you or you need any help in VS.NET, VB.NET, Software Coding, Designing and much more any help in Computer stuffs just ask me
Mostly i will help everyone in coding and design stuffs in on Computer
- Best regards hehaho;
- Tvs Praveen wahooo;
- Thanks CodeNStuff! for this amazing Website cooll;
And in Form1_Load Events add this code into it
Code: Select all
First in Properties of the Timer make Enabled = True, And interval into 1KeyPreview = True
Then double click Timer and add this code into it
Note: To unlock mouse press M, And you can change the key in code!
Code: Select all
Now add this code into Form1_KeyDown EventsCursor.Position = New Point(500, 500)
Code: Select all
Now double click CheckBox and add this code into it If e.KeyCode = Keys.M Then
CheckBox1.Checked = False
End If
Code: Select all
If CheckBox1.Checked = True Then
Timer1.Enabled = True
Else
Timer1.Enabled = False
End If
*******************Thanks for reading my tutorial, I think this Tutorial will be most helpful to you!*******************
If you want any custom tutorial for you or you need any help in VS.NET, VB.NET, Software Coding, Designing and much more any help in Computer stuffs just ask me
Mostly i will help everyone in coding and design stuffs in on Computer
- Best regards hehaho;
- Tvs Praveen wahooo;
- Thanks CodeNStuff! for this amazing Website cooll;
Last edited by tvs praveen on Tue Jan 26, 2010 11:13 am, edited 1 time in total.
Tvs, You ask for a code ... and then you put it in here yourself? :L
Hey TVS Praveen! I was just about to post the same thing yesterday but I didn't did it because... Actually I had written a little bit of tutorial about it but I thought that you will need to do something like Dim X as Integer, Dim Y as Integer etc. but the mouse thinggy is very easy. Just "Cursor.Position = New Point(500, 500)". I just deleted the whole tutorial because of this! Anyways, I am glad you found it (and shared it!). Thanks.
lewisfroom wrote:Tvs, You ask for a code ... and then you put it in here yourself? :LHe has already told in another section that she has figured it out and he wants to share it with other people to help them!
lewisfroom wrote:Tvs, You ask for a code ... and then you put it in here yourself? :L
Yes, I figured it out myself, Now i found best code for Mouse Lock, To unlock mouse press M
You are a girl TVS? On-topic: I was trying to figure this out for soooo long since you posted the request and then it's this easy! OMG what a waste of time for me lol Anyways thanks for this.
GoodGuy17 wrote:You are a girl TVS? On-topic: I was trying to figure this out for soooo long since you posted the request and then it's this easy! OMG what a waste of time for me lol Anyways thanks for this.No i`m boy
it tells me the "e" in e.keycode is not declared? help?
Copyright Information
Copyright © Codenstuff.com 2020 - 2023