I was wondering if it is possible to have overall mouse and keyboard events.
I made a member system with magnetic cards for a discotheek here but there is a problem i realy want to solve.
Cause the cardreaders are keyboard wedges so they just send out keys and presses enter when there is no more data.
Now on my entrance screen i have just 1 focuseble object and thats a textboxt. With the standard code:
This way i can perfecly see wich char is pressed but i always need a stupid textbox in my screen with the focus on it.Code:Private Sub Textbox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Textbox.KeyPress Console.WriteLine("Pressed : " & e.KeyChar) End Sub
I have the same system in my 'search member' window but still then i first need to focus on the specific textbox.
Isnt there some event that always fires when i press a key?
And then i have exctualy the question for the mouse press events.
I made a full screen game once when i was still @ school(still am but different now) and even then i needed a form to be able to listen to those events.
I dont want to depend on windows controls only :@
This is probably goeing to be API work wich i never did before.
I hope anyone can help.
Greets




Reply With Quote