Results 1 to 8 of 8

Thread: Focus must always be on my application

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    5

    Focus must always be on my application

    Hello,

    I want to know how I can be sure that the focus is always on my application. If the user clicks on another app, the focus must get back to my app.

    Thanks for help.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    The easiest way would be to not let them click on another app.

    Confine the mouse cursor to just your screen.

  3. #3
    Frenzied Member SeanK's Avatar
    Join Date
    May 2002
    Location
    Boston MA
    Posts
    1,160
    You could also set your form to always be on top.
    Beantown Boy
    Please use [highlight=vb]your code goes in here[/highlight] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.

  4. #4
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    This question is asked here about 10 times per month. Do a search for 'always on top'.

    Also, there is a thread in this api forum - FAQ - that is still visible. It has the answer as well.


  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    5

    Not only always on top

    Sorry,
    but it´s not only that the form have to be always on top. It must have the focus of the keyboard, so that´s impossible to shut the computer down and to close my app.

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Ok

    So, would confining the cursor to your form work for you?

  7. #7
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    So, would confining the cursor to your form work for you?
    You'd also have to nuke the ALT+TAB key combination
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  8. #8

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    5
    ok, thank u very much

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