TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mikkel Larsen
NA
7
2k
[C#] Buttons and shortcuts
Sep 6 2011 3:48 AM
So i wan't to make a shortcut for a button on my form, and it is controlling a timer, i wan't the timer to stop when i press Ctrl + L and it work's but only when the form is in focus, i wan't the shortcut to work when it's out of focus ect. when im on the desktop.
Heres my simple code that works when it's in focus :/
Oh, and if this topic is in the wrong section of the forum, feel free to move it, i couldn't really see other places to have this.
private void Form2_KeyDown_1(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.L)
{
timer1.Stop();
}
Reply
Answers (
7
)
Populate comboBox with actual relation name and rest records names
How to resolve domain names for c# application