Results 1 to 7 of 7

Thread: press key?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Location
    Tanzania (Arusha)
    Posts
    17

    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 ..
    Muz

  2. #2
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    I guess you can use the KeyDown event of your form for that. The KeyCode of the Windows-key is 91.

  3. #3
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    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

  4. #4
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Auckland, NZ
    Posts
    411

    Not Helpful Response coming up

    Because the windows key annoys me when gaming, I solved the problem by ripping it off my keyboard
    Paul Lewis

  5. #5
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    Try using the keypress event and if it's 97, set keyascii to 0.

  6. #6
    Hyperactive Member
    Join Date
    Feb 2003
    Location
    Grenada
    Posts
    346
    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.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Location
    Tanzania (Arusha)
    Posts
    17
    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
    Muz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width