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.