none
Assigning a key stroke to any key RRS feed

  • Question

  • I am trying to find a way to use a key so it will open up my ATT mail on Yahoo or Verizon. Like hit the F1 key and my log in page opens.
    • Moved by Stanly Fan Tuesday, August 1, 2017 7:37 AM from windows form general
    Thursday, July 27, 2017 5:48 PM

All replies

  • Hi,

    Which technology do you use to achieve this purpose? And this forum is talking about Windows Forms, so if you want to do it with Winform, please refer to the following code:

            private void Form1_KeyDown(object sender, KeyEventArgs e)
            {
                if (e.KeyData == Keys.F1)
                {
                    string logIn = @"https://outlook.live.com/";//you can set it to your own web link
                    System.Diagnostics.Process.Start(logIn);
                }
            }

    Hope this helps!

    Best Regards,

    Stanly


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Edited by Stanly Fan Friday, July 28, 2017 2:17 AM
    • Proposed as answer by Stanly Fan Monday, July 31, 2017 8:44 AM
    Friday, July 28, 2017 2:16 AM