473,696 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable User Input

Hi

How can I disable all user input? I would like to fully ignore all keyboard
and mousevents.

Is their a disabletaskwind ows available or something likewise?

kind regards

Alexander
Nov 16 '05 #1
4 3548
Well - you should be able to do a system-level hook - but doing this from
..NET may involve some nasty P-Invoking

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram
"Alexander Muylaert" <Re********@pan dora.be> wrote in message
news:OL******** ******@TK2MSFTN GP14.phx.gbl...
Hi

How can I disable all user input? I would like to fully ignore all
keyboard and mousevents.

Is their a disabletaskwind ows available or something likewise?

kind regards

Alexander

Nov 16 '05 #2
Sriram Krishnan wrote:
Well - you should be able to do a system-level hook - but doing this from
.NET may involve some nasty P-Invoking


Why would you want to do this ? Why do you want to lock up windows
completely apart from your application ?

Would you like to buy an application which locks up your windows desktop
whilst it did something ? Probably not.

Please explain further.

Darwen.
Nov 16 '05 #3
No man

I don't to disable Windows, I wan't to disable user input in my app for a
while.

I would lke to write a loop like

while MsgWaitForMulti pleObjects(yaya , QS_ALLINPUT) {
while peek {
if (Msg != Keyboard) and (Msg != Mouse) then Dispatch.
}
}

I know the WaitHandle.Wait Any allows a message to fall through, but I'm not
sure if it blocks input messages.

I would like to be able to handle all timer, messages while waiting for an
event.

kind regards
Nov 16 '05 #4
No - not lock up Windows completely. With system level hooking you can
choose which messages get through and which dont - so the original poster
can disable user input like he wants to

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram
"David McClarnon" <dm********@ntl world.com> wrote in message
news:Vh******** *******@newsfe1-gui.ntli.net...
Sriram Krishnan wrote:
Well - you should be able to do a system-level hook - but doing this from
.NET may involve some nasty P-Invoking


Why would you want to do this ? Why do you want to lock up windows
completely apart from your application ?

Would you like to buy an application which locks up your windows desktop
whilst it did something ? Probably not.

Please explain further.

Darwen.

Nov 16 '05 #5

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

Similar topics

0
2279
by: jwsacksteder | last post by:
I want to have a check box that can optionally disable a text input field in the same dialog. I am asking the user to input the start and end of a range and there needs to be a check box to select all items. When the checkbox changes state, I want to ghost-out the input fields. A rough approximation of the situation follows. class mystuff(Frame): def __init__(self,parent=None): Frame.__init__(self,parent)
2
9736
by: HolaGoogle | last post by:
Hi all, Can you please tell me what's wrong with my code??? i do have this database in wich i have to field.One is a "yes/no" field and another one is "number" field. To display the yes/no field in my asp form i use a checkbox and fot he other field i use a normal text box. if the yes/no field is checked then the other field is enabled otherwise it has to be disabled.Here's what i've done so far: Do While Not ObjRS.EOF <td><input...
2
6456
by: HolaGoogle | last post by:
Can you please tell me the right way to do this?? it's realy important! thanks in advance... Hi all, Can you please tell me what's wrong with my code??? i do have this database in wich i have to field.One is a "yes/no" field and another one is "number" field. To display the yes/no field in my asp form i use a checkbox and fot he other field i use a normal text box. if the yes/no field is checked then the other field is enabled...
1
5579
by: Lisa | last post by:
I need to apply the HTML formatting tags and the French accented characters in a XML document. The XML is generated from a database that has HTML tags and French accented characters in the records. I have specified <xsl:output method="html"/> and encoding="iso-8859-1". When I apply the xsl:value-of and set the disable-output-escaping to "yes", the HTML formatting tags are displayed correctly, but the French accented characters are...
4
56660
by: KS | last post by:
Im trying to prevent the user from clicking any other links on my page when the user have selected/clicked a href once. Sometimes it takes a while before the next page loads so some user will try clicking other links or the same link. I can prevent this when i use buttons by calling onclick and in a javascript getElementsByTagName("input") and then check the type to be type of "button" or "submit" which i then disable. It works. This also...
12
8876
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
0
1126
by: dotnetkumar | last post by:
hi everybody, i am currently working with multipage and tabstrip controls. i want to disable the multipage and the controls inside it unless the user wants it to enable it. multipage.enable property is ofcourse there but the controls can still get the user input (say textbox). isnt the enable property enough to block the user input?. Should i loop through the controls and disable each of them? suggestions please.............
2
5627
by: khng | last post by:
How to disable the copy/drag event for some selected textfield as I want the user to key in instead of copy or drag the required information. For IE, I done it with the onPaste and onDragEnter Event, but it don't work on Other Browser, so I need your helping hand
9
10283
by: surf_doggie | last post by:
Im not sure if this is the group to post in, if anyone knows a more appropriate one please let me know. Please consider the following example of a feature most all browsers have that I would like to either disable or find a work around for. Background: I have a form that has 3 input type="text" fields. The fields are Quantity, Amount and total. OnKeyUp is used when you enter something in Quantity or Amount to trigger a javaScript...
0
8592
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9005
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8871
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4351
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4605
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3025
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1989
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.