Prevent A Keypress In Another Application?
Mar 17, 2011
We have 2 apps that we display at once for data entry. 1 taking up the left side of the screen, and 1 taking up the right side.
1 of those apps is the data entry application. The other app is for viewing scanned info. But they can't talk to each other directly.
So I'm creating a tool that runs in the background to intercept certain keys.
I want to be able to capture keys such of Ctrl + Home, Ctrl + Page Up, etc from the data entry application, and send it to the scanned image to rotate it or zoom, etc.
I believe I can do most of it, except 1 part.
Right now if I did Ctrl + PageUp, it will send the key press to both apps. How do I prevent a keypress from the originating application?
View 4 Replies
ADVERTISEMENT
Sep 3, 2010
I have a form with 4 textboxes. How would I prevent the user from entering a duplicate value upon keypress?
View 8 Replies
Apr 16, 2010
I'm having a problem with my listbox control. I am trying to handle all the keypress events for the listbox and changing the index to the item I want as they type. But the problem is the listbox changes the index to the last key they hit. Here is what's going on.
[Code]...
View 1 Replies
Mar 9, 2011
I have a console application and i want to run some code but at the same time I want to have the ability at any given time to press CTRL + SHIFT + S to stop it,
Now I tried doing something basic like this which would stop if you press X at any given time:
Dim stTest as string
Do Until stTest = "X"
stTest = console.ReadLine
console.WriteLine("you didn't press X yet...")
The problem is that every time before it writes that line it will wait for the user input because i have "Console.ReadLine" on there, I don't want that to happen, I want it to keep going until a set of keys are pressed.
View 1 Replies
Nov 7, 2009
Is it possible to capture a keypress with my application, even if the application isn't focused?And if it is, could someone please point me in the right direction? (I.E things to look up, tutorials)
View 2 Replies
Mar 11, 2009
how to capture keypress event outside an application
View 1 Replies
Aug 20, 2009
I've tired to use KeyPress event while in focus of my program's window in VB.Net, but it doesn't work.
For example I wanted to press the number "2" anywhere while in focus of the application and as effect the pixels of the window will change from 200,200 to 600,600 (hortizontal and vertical)
Private Sub Form1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
Form1_KeyPress(Keys.D2)
Dim size As Size
size = Me.Size
[Code]...
View 4 Replies
Nov 15, 2011
I'm trying to create a WPF application and found out that there is no KeyPress event for Textboxes, so I used PreviewTextInput. Now, I want to have a function that will block the keys that will make the input data invalid. [code]Now, my problem is, when I choose numeric, the textbox still accepts spaces, how can I block the spacebar?
View 6 Replies
May 28, 2009
I am using KeyboardCallback to log my keyboard events.How can I get keydown screen coordinates as well, Is it possible ?? I can able to capture mouse screen coordinates but I want keydown screen coordinates.For your reference I have written procedure here...
Private Function KeyboardCallback(ByVal Code As Integer, ByVal wParam As Integer, ByRef lParam As KBDLLHOOKSTRUCT) As Integer If CBool(GetAsyncKeyState(Keys.Menu) And &H8000) Then
'Alt key pressed
KeyData = KeyData Or Keys.Alt
[code].....
View 2 Replies
Jan 31, 2011
am importing the Excel sheet data into Textbox controls based Key Column(WONumber) from application folder where all Excel files resided.if i typed wrong WONumber(Un available file in Excefilesl folder) and clck on load application getting collpased, i wanted to prevent this and just through a message "WONumber is not presente in the Excelfile folder"
Syntax error (missing operator) in query expression 'Wono='.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more in
[code].....
View 3 Replies
Apr 10, 2012
I have the need to either prevent, or restrict, the termination of a VB.Net application. I have no problem with Admin killing the application, but not a user. I've been unable to come up with a solution for this. Is there maybe even a way to set local policy to prevent termination by non-admin?
View 2 Replies
Nov 23, 2011
I'm creating some software to keep my students on task. I've set it up so that I can control certain aspects of their computer from my computer. Problem is, I'm not sure how to control other applications from my application. I mostly just want to prevent it from being minimized. Some students like to switch screens quickly when I walk by. I would just like to make sure that it is always on top until I specify otherwise. I'm using VB.net, I'm using the 3.5 .net framework for compatibility reasons.
View 1 Replies
Feb 7, 2010
how do I prevent my users for more than one simultaneous login per account. I am using Vb.Net SQL.
View 2 Replies
Sep 17, 2010
I'm still learning Visual Basic and I'm creating a web browser with basic tab and new window support. My problem is that if new windows are created if the original form window is closed, both windows are closed and the program is quitted. This is to be expected but like any browser the program quits based on the last remaining window open. How would I do this in Visual Basic?
View 4 Replies
Aug 26, 2010
Any way to prevent my application from taking screen shot. I am using this method
If Clipboard.ContainsImage = True Then Clipboard.Clear()
If this is correct? And also what about screen capture application they take the screen shot without using clipboard what is logic behind it and if there is any way to resolve it?
View 13 Replies
Jan 12, 2012
I created a server-client application using the asynchronous socket. I found the problem when closing a socket on the server, applications so closed. The procedure that I do to close the socket server is:
Terminate the listening thread. Close the client socket is still connected to the server. Close the server socket.
How to prevent the application is closed, when I close the server socket?
Protected Friend Sub CloseServerSocket(ByVal IPAddress As IPAddress, ByVal socketPort As Integer)
' Terminate the listening thread.
[Code].....
View 1 Replies
Jan 16, 2012
How should I generate an Excel File with this rule?Should not be able to paste an invalid value to a validated cell from other worksheet.
View 1 Replies
Aug 24, 2009
Im going to make my application require a Serial key(No clue how this works). And how do i prevent jumping messages. My friend said that there most used for getting keys and avoiding key asking.
View 5 Replies
Dec 29, 2009
I know something like this exists, I juts don't know the right word to search about it, so basically I have a cosole application and if it runs twice it crashes. I wanna dispay a message: Sorry app alerady running.I can look at processes and see if my exe is there already running but that's much harder.
View 2 Replies
May 26, 2009
I have a GUI with a few button on it and each button start an application. I want to prevent the application to start twice if the user double click on the button. How can I do that?
View 7 Replies
Feb 10, 2011
I have to do one thing : developped a program in VB.netThis program will have two fonctions :The first : -Permit the client to log in the PC.The second :-Count how much time the client use the PC, end send the result to an other PC for proceeding at the payement.By this way, it's necessary to prevent the user to close my application. I can't disable the task manager, because it's very useful for the client when a game crash.I try to hide the process and I succeed, but I don't like this solution, I prefer that the client can see the process but can't close it (and it's very ugly, 'cause we see the process appears 1-2milliseconds in the task manager). So, I want to try an another solution : prevent the user to kill my application like the antivirus do (avira, for example), with a messagebox who said "Access Denied".
View 8 Replies
Aug 17, 2009
how to get the ascii of a key press on a timer.
View 6 Replies
Feb 25, 2011
I am trying to write a program that dims the brightness on my laptop. I have been unable to find the correct code, so I am trying to get it to press 'Fn & Down' on form load. The problem is I cannot find 'Fn' in the e.KeyPress I set up a small program that alerts me of the key pressed and pressing 'Fn' does not give and alert. Pressing 'Fn & Down' Gives a keycode of "None" Is there some way I can register the 'Fn' key in vb.net?
View 2 Replies
Aug 11, 2010
I have written a login. Now I want to do this (press return to login):
[Code]...
It does not work. At this time it works only with a button.
View 2 Replies
Mar 24, 2012
Before anyone tries to close this thread thinking this is for malicous purposes, let me tell you that it's not. What i'm working on is an application to save screenshots to files as soon as the 'Print Screen' key is pressed, as Jpegs or what ever. What i want to do is be able to minimize the application and I still want the application pick up on any 'Print Screen' presses, and save the screenshots. I've tried using the KeyPress event, but I soon realized that it only worked when the application had focus. I plan on using it to save screenshots every time I press 'Print Screen'
View 2 Replies
Jun 29, 2010
Is there a way to do something when the left mouse curs is down. ive tried:
If apimouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0) Then
do things
end
i have this on a timer so i want as long as mouse is down do this...yess i have declered mouse event but when i try it ignore apmouse event and do the things even if not cursor is down If you donīt Believe in it, Then it Doesnīt Exist!
View 1 Replies
Feb 22, 2010
I am working on a software in Visual Studio 2008 Professional, and I need to write code that will run a certain code on a keypress. I cannot find the necessary code anywhere.
View 2 Replies
Dec 7, 2011
Is there a method I could use to 'sniff' for a certain keypress.For example, from firefox, I could press ctrl+k and have my program show. Does this capability exist in VB.NET?
View 6 Replies
Dec 9, 2010
How do I detect a ctrl+tab keypress?
Reason for asking: I want to stop a user from changing tabs in a tab control.
View 1 Replies
Mar 7, 2011
I want to be able to detect when the user presses F10 or Ctrl+F10 outside of my program, and upon receiving the key press, it will send text to whatever they currently have selected (e.g. a text box). How can this be accomplished in the simplest way?
View 3 Replies