How To Disable The User's Mouse

Oct 28, 2010

What I have so far is a program that moves the mouse around my application. I used a bit a maths as well to make the movement smooth. Here's my code for anyone who is interested:

Code:
Public Sub MoveMouseCursor(ByVal DestinationX, ByVal DestinationY)
Dim DifferenceX As Integer = MousePosition.X - DestinationX
Dim DifferenceY As Integer = MousePosition.Y - DestinationY

[Code].....

Now with my problem. When the program is running, the last thing I want is for the user to be moving the mouse because the program would get disrupted. How can I enable and disable the use of the mouse for the users benefits really because if they even knock the mouse slightly it could cause them a few difficulties. Anyway, I am hardly restricting them from using their computer because there is only one mouse. If they want my program to run, then they will have to except the fact that they can't do something else in the mean time. Also, after the program has finished running, I will need to enable the mouse again.

View 8 Replies


ADVERTISEMENT

How To Disable User Mouse And Keyboard

May 24, 2011

In visual basic how can I make the user's cursor not visible and the keyboard input not "enabled"?

View 1 Replies

Disable Mouse Click For A While Of Filter Mouse Clicks

Sep 1, 2011

Im using Visual Basic 2008 Express..Is there a way to disable mouse click for a while in Visual Basic 2008, I mean if mouse was clicked more than 1 time in very short time to click only once? -- I need it because my mouse became like crazy one.. when I click once it may clicks twice or more.so until I buy another one, I'd like to filter click, to allow only one click and to block another clicks that were made in last second.

View 1 Replies

Disable Mouse While Mouse Is Over WebBrowserControl?

Jun 11, 2009

I have a WebBrowserControl on my main form and it auto navigates and all that just fine! What I would like to do is not allow the user to click anywhere within the WebBrowserControl while the program is running. Reason for this is that the browser self-navigates to a view of cameras and this shows scrollbars. My program then takes screenshots of specific coordinates on the screen so I do not want the user to use the scrollbars or highlight or do ANYTHING to the page once the program starts. I would like to change the cursor icon to like a red X or something similar to indicate no user functionality.

View 2 Replies

C# - Disable The Keyboard And Mouse?

May 13, 2010

I am looking to create a VB.NET application. when the application is opened it will disable the keyboard and mouse so if you hit any keys it does nothing and you can not move the mouse. (even if currently selected window is not that of application).

MUST WORK ON WINDOWS 7!

View 3 Replies

Disable Mouse And Keyboard?

Feb 1, 2009

Yes wat is the Source Code for Disabling Mouse and Keyboard?(For VB 2008)

View 2 Replies

Disable Mouse Clicks, Right And Left

Jul 20, 2009

I have an application in Visual Basic Express 2008 that just has a Windows Media Player control on a blank form. In order to prevent the user from double clicking which would result in the media player full screening, I want to disable both right and left mouse clicks on the form and Windows Media Player control. Any suggestions?

View 2 Replies

Disable Mouse While Over WBrowser Control?

Aug 2, 2009

How can I disable the mouse while it is over my web browser control. I do some code-navigating so I do not want the user to interact with the control while it is doing its thing (and it has to be visible)

View 3 Replies

Disable The Keyboard And Mouse Input?

Jan 30, 2010

How can i disable the keyboard and mouse input?

Its not working:

Option Strict On
Option Explicit On
Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Boolean) As Long

[Code]......

View 7 Replies

How To Disable/enable Mouse Click

Feb 1, 2012

I'am using vb 2005.me a hint how can i disable/enable my mouse click at runtime

View 14 Replies

Script To Disable Keyboard And Mouse

Dec 25, 2011

I am kind of amazed that there is no answer to this anywhere and I mean anywhere. I am looking for a way to disable the keyboard (actually all input) on a computer. There are several threads about it but no one has ever posted any serious, working code. I know someone is going to inevitably ask "why would you want to do that"? Actually why I want to do it is immaterial but if you must know... I am playing with a "USB Keylock". When this USB Keylock is not present in the computer I want to disable the keyboard. When it is present I want to enable the keyboard.

View 8 Replies

VS 2008 Disable Mouse Move?

Nov 12, 2010

i would like to write a function that when i click a button, the monitor will go in to standby mode, and then when i press the keyboard, it will wake up, but i do not the mouse wake up my monitor, how can i prevent my mouse wake up my monitor or how can i disable the mouse move?

View 2 Replies

Disable Mouse Scroll Wheel In Combobox?

Jun 3, 2010

Does anyone know of a way to disable the mouse scroll wheel when a control such as a ombobox or listbox has focus? For my purposes, combobox is all I need the answer for.I have a combobox set to trigger a SQL query on SelectedIndexChanged, and accidentally scrolling the wheel while the combobox has focus causes about six SQL queries to fire off simultaneously.

View 3 Replies

Disable Mouse When Using Touch Screen Monitor?

Nov 28, 2011

I want to disable the funtionality of using a mouse when using a touch screen monitor in vb.net. the reason why i ask is because i want to limit users to only one option. is there a way I can code this in vb.net 2010.

View 2 Replies

Disable RightClick Mouse And Print Screen Key?

Apr 6, 2006

How to disable the right click of mouse? Please provide codes. How to disablethe Print Screen Key so that user cannot use it? Please provide codes. Applicable to both windows and web applicatuions.

View 9 Replies

Temporarily Disable Mouse Clicks On A VB Net Form?

Aug 16, 2010

I have scoured the net for help with this problem of temporarily disabling mouse clicks on a VB Net form and have not been able to find a solution that works.

I'd like to prevent users form clicking on a form when i'm doing some background processing. To me it sounds simple in theory but apparently its not.

View 1 Replies

VS 2005 : Disable Mouse Wheel Scrolling?

Oct 7, 2009

how to disable mouse scrolling only in selected combobox..ex. i want only scroll function ius disable only in combobox1 and combobox2

View 5 Replies

VS 2008 Disable Keyboard & Mouse - Windows 7?

May 13, 2010

I have done some reasearch on disabling the mouse and keyboard both on Google and on the forum and what ever i find can not get to work. What I'm trying to do is on a click of a button it will disable the mouse and keyboard. It must work in W

View 4 Replies

VS 2008 RichTextBox - Disable Mouse Scaling?

Apr 17, 2011

Finishing off my control, but I now found a nasty problem. When the user holds the 'Ctrl' key and scrolls the mouse scrollwheel, the control is scaled. I do not want that, since it would make the Font size fail.

I previously made it reset the scale on Control up, but that is just not a very elegant way:

Me.ZoomFactor = 1 I do not want the text scaled at any time, not even while the user is scrolling and it resets afterwards. I got to overriding the 'ProcessCmdKey' but no idea how to catch a scroll or zoom event.

Any way of disabling the RichTextBox scaling (or zooming) so it does not even occur? I have a control that inherits from the RichTextBox.

View 2 Replies

Disable A Left Mouse Click In A Listbox Without Disabling List Box?

Mar 9, 2009

Is there a way to disable a left mouse click in a listbox without disabling the list box ?

View 6 Replies

Disable And Enable Mouse Events In .net While Waiting Cursor Running?

Jul 28, 2010

i'm developing windows application using vb.net. I have to use waiting cursor for processing some items,at that time users are not allowed to access the other things in the form. I set the waiting cursor but it allows the user to access the other links. So i want to disable the mouse events after the processing complete then enable the mouse events.

View 4 Replies

Disable Any Mouse Click (left & Right Buttons) On A WebBrowser Object?

Apr 1, 2011

how i can disable completely mouse and keyboard input on a WebBrowser object using Visual Basic 2008 i have this code:

Dim CarImp
As
New DirectoryInfo("C:VSEPRN")
If CarImp.Exists =

[code]....

i generate a small HTML file on a hard disk, put the AxWebBrowser2 object navigate to the file, all works fine, but i need to diable all user interface on that object. If the user clicks on object, the page reloads completely and i need to avoid that behavior.

View 2 Replies

Restrict Mouse Movement To Primary Screen And How To Disable Keys

Oct 5, 2009

I had a post about how to disable monitors, but someone suggested just making it not possible to leave the primary screen. This was obviously a good suggestion, but im not sure how i would accomplish this.

I need to prevent the user from entering the ctrl, alt, delete, escape, and windows key. I also need to prevent the mouse from leaving the primary screen.

My program is a security login system. It requires a username and password to close, and i want to make sure that it cannot close unless the user supplies the correct username and password.

View 2 Replies

VS 2008 : Disable The Fading When Hovering The Mouse Over A Variable In The Editor?

Mar 8, 2012

I'm using VS 2008 under Windows 7. When I hover the mouse over a variable in debug mode, the value will fade in slowly. Sometimes it is annoyingly slow, I just want the value to show up, no animation or fading. Or is this fading feature a Windows thing and not a VS thing?

View 2 Replies

Disable User From Entering Desktop?

Jun 6, 2011

How do i disable user from goto desktop and when they press Control+Alt+Del it must prompt with admin username/Password.Is it possible to do....i have created a login page but i have no idea on how to make it prompt when user press Control+Alt+Del

View 3 Replies

Forms :: Disable Webbrowser For User?

Jun 3, 2009

I want to disable the webbrowser for the user, so the user wont be able to click anything (links on site and stuff) but I can still navigate the webbrowser through code.

View 2 Replies

User Can Disable The Splash Screen If He Wants?

Jan 6, 2012

I want that my application will have a splash screen - thats easy. The problem is that I want to give the user the ability to disable the splash screen if he wants. If I set this in the application splash screen settings then there is a splash screen,but there is no way the user can disable it. If I do it without a real splash screen - with a timer that closes the form and opens the real main window - the application closes itself because of the setting "Shutdown application: When startup form closes".I just can't choose the second setting (when last window closes).

View 3 Replies

Disable Nodes In Treeview By User Or Role?

Jun 2, 2011

How to disable node of treeview by user or role in winform

View 10 Replies

VS 2008 Disable User From Dragging A Form?

Jun 28, 2010

Is there a way to disable a user from dragging a form other than setting the form border style to "None" ?

View 8 Replies

Disable A Form From Moving Still Allowing The User Close It?

Jan 21, 2010

Is it possible to disable a form from moving still allowing the user close it? How?

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved