Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 399095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:48:46+00:00 2026-05-12T16:48:46+00:00

What are RegisterHotKeys and global keyboard hooks, and how do they work? I want

  • 0

What are RegisterHotKeys and global keyboard hooks, and how do they work?

I want to make a key to get focused on my application’s Form (when it’s minimized) and then focus on a textbox, so from what I’ve read I need to use the RegisterHotKeys function (that’s a better solution for my needs), but i couldn’t find how or where I can choose my own key (only one key – ESC) and then command it to focus on my form, and then on the textbox.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:48:46+00:00Added an answer on May 12, 2026 at 4:48 pm

    Sample on how to use hot keys.

    class myform : Form
    {
        public myform()
        {
            RegisterHotKey(Handle, id, modifiers, mykey);
        }
        protected override void WndProc(ref Message m)
        {
            if (m.Msg == 0x312) // this is WM_HOTKEY
            {
                Show();
            }
            base.WndProc(ref m);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have done the global hotkeys for two key combination using the below code.
I create a global hot key to show a window by PInvoking RegisterHotKey() .
Simply put, I want to be able to get the event of a mouseclick
I'm trying to reverse engineer (OllyDbg) an application (game) that disables (captures/intercepts/blocks) all global
I am setting up global shortcut keys in Windows, using the RegisterHotKey method public
I am using RegisterHotKey to define a system-wide hot key that, when pressed, will
I'm struggling to think of a good design to handle multiple global hotkeys. Say
Is there a way to notice the release of a hot-key button registered with
Let's say I pressed = on my English keyboard. If I switch my keyboard
A have a C# class which simplifies the handling of global hot keys. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.