473,324 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

how to make keyboard & mouse temporary not response

cc
hi,
how do I make keyboard & mouse temporary not response to desktop
Nov 20 '05 #1
3 1274
Pardon me but the desktop responds to the I.O devices not the other way
around. Please explain what you are trying to do.

Regards - OHM
cc wrote:
hi,
how do I make keyboard & mouse temporary not response to desktop

Nov 20 '05 #2
Cor
Hi,
how do I make keyboard & mouse temporary not response to desktop


I did want to answer with simple" me.enabled = false", but did not trust it
because this answer seems to simple to me. So I did test it, and I find
this strange and do not understand it.

Who will test it also and tell me if this is normal behaviour or a bug?
The problem is that when you pusth the button when enabled is false, it
keeps responding to the events, so you have to push several times on the not
locked button.

Framework 1.1

Cor

\\\
' needs one button and one label on a form
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Static i As Integer
Me.Button1.Text = "locked"
Dim ctr As Control
' Me.Enabled = false did not work so
'I did try this but does not work either
For Each ctr In Me.Controls
ctr.Enabled = False
Next
Me.Refresh()
Dim y As Integer
For y = 1 To 20
Threading.Thread.Sleep(50)
i = i + 50
Me.Label1.Text = i.ToString
Me.Refresh()
Next
For Each ctr In Me.Controls
ctr.Enabled = True
Next
Me.Button1.Text = "Unlocked"
End Sub
///
Nov 20 '05 #3
* "cc" <ko*****@singnet.com.sg> scripsit:
how do I make keyboard & mouse temporary not response to desktop


\\\
Private Declare Auto Function BlockInput Lib "user32.dll" ( _
ByVal fBlock As Boolean _
) As Boolean
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Megha Vishwanath | last post by:
problem defination : I have written one application which does lot of cpu intensive operation , which would take up to 50% cpu continuosly , as result of this whole opertaing system becomes...
8
by: Nolan Martin | last post by:
Is it just me or are there no good librarys out there to access the keyboard or mouse? I have been looking around for a while now and can only find ones that are bundled with a bunch of other...
1
by: Alexandre Jaquet | last post by:
Hi, I would like to copy and paste a selected item on a web page I already 've a context menu when the user rigth click on an item. I would like to draw a rectangle who carry about current...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
16
by: dfaber | last post by:
Hi all, I have been searching for a keyboard and mouse tracker on linux. I've read solutions (watch at sourceforge) which look at /proc/interrupts to check keyboard or mouse activity. I also read...
0
by: Gamey | last post by:
I have an application that NEEDS (don't ask) to handle additional mouse and keyboard processing during DoDragDrop. Normally, DoDragDrop kindly squashes all keyboard and mouse events. Alternate,...
5
by: Sagaert Johan | last post by:
Hi Can someone point me the good direction to start a project that injects keycodes, or (scancodes ) into the system as if the came from the keyboard. (like barcodescanners etc.. do) Johan
1
by: =?Utf-8?B?aG9tYW50Y3c=?= | last post by:
-windows xp -dell dimension 9150 The computer starts normally, loads up the blue login screen. I can move the cursor around the screen and type on keyboard. Then after roughly 3 seconds...
13
by: andypb123 | last post by:
Hello, The onchange event fires in IE6 in a SELECT element when scrolling through the list with the up and down arrows on the keyboard. In Firefox it only fires after you hit the enter key, which...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.