Results 1 to 2 of 2

Thread: [RESOLVED] small problem

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2007
    Location
    Cardiff, capital of Wales :-D
    Posts
    33

    Resolved [RESOLVED] small problem

    hi guys i searched but didnt find anything useful for my problem
    is what i want is a way of when a certain button on the keyboard is pressed my vb project to be shown above everything else.
    for example when i press the End key my visual basic program will be displayed above all other windows.
    thanks for the help

  2. #2
    Frenzied Member
    Join Date
    Jul 2007
    Posts
    1,306

    Re: small problem

    Welcome to the Forums


    To achive this, you have to do two things.
    1. register a Hotkey systems wide.
    2. Bring the form on top

    For the first one, you can use two APIs. one is GetAsyncKeyState and other is RegisterHotKey

    Here are some examples for that
    http://www.a1vbcode.com/snippet-3708.asp
    http://www.vbforums.com/showthread.php?t=446131

    http://www.codeguru.com/forum/showthread.php?t=345422
    http://vbnet.mvps.org/index.html?cod...sterhotkey.htm

    For your second problem look at these examples

    http://www.vbforums.com/showthread.php?t=352702
    http://support.microsoft.com/kb/186431
    http://www.developerfusion.co.uk/show/2940/2/

    Here is some aditional help
    http://www.thescripts.com/forum/thread389768.html
    IIF(Post.Rate > 0 , , )

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