|
-
Feb 9th, 2003, 02:05 PM
#1
Thread Starter
Junior Member
press key?
hello,
could anyone tell me this..
i want to stop the start menu from opening when i press the startmenu key or the windows key on the keyboard i mean when the application of vb is active ..
-
Feb 9th, 2003, 04:03 PM
#2
Fanatic Member
I guess you can use the KeyDown event of your form for that. The KeyCode of the Windows-key is 91.
-
Feb 9th, 2003, 05:59 PM
#3
Hyperactive Member
Originally posted by TheVader
I guess you can use the KeyDown event of your form for that. The KeyCode of the Windows-key is 91.
no that wont work he asked how to stop the startmenue from comeing up not how to detect a start menue key press
-
Feb 9th, 2003, 06:16 PM
#4
Hyperactive Member
Not Helpful Response coming up
Because the windows key annoys me when gaming, I solved the problem by ripping it off my keyboard
-
Feb 9th, 2003, 06:47 PM
#5
Frenzied Member
Try using the keypress event and if it's 97, set keyascii to 0.
-
Feb 9th, 2003, 10:06 PM
#6
Hyperactive Member
That won't work...
The keyascii variable is private to the sub in which it is called and it is read only...
Changing the value of KeyAscii won't do anything except waste valuable nanoseconds of your program...
You can do either 2 things...
#1 use hooks and trap the keyboard events... which is kinda ricksy if you close the VB app. and forget to unhook the keyboard... or...
#2 You can detect when the windows key or Ctrl+Escape is pressed and if it is then stimulate a pressing of the Windows key using the same SendKey function. That way when the menu opens up, it closes again in a slow flash... but a flash none the less.
If my post has been helpful, then please rate it accordingly...
If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.
-
Feb 10th, 2003, 08:55 AM
#7
Thread Starter
Junior Member
i am very thankfull to all of u for ur good answers, but i would like the actual code coz i am not muchinto vb i mean i dont know alot about functions and stuff like tht.. so please if u could give me the exact code if possibe..
thx for ur kind cooperation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|