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 ..
Printable View
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 ..
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 pressQuote:
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.
Because the windows key annoys me when gaming, I solved the problem by ripping it off my keyboard :)
Try using the keypress event and if it's 97, set keyascii to 0.
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.
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