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
Oky Sabeni
NA
1
5.7k
Temporarily Suspend/Stop Keyboard Inputs
Jul 28 2010 4:08 PM
Hi,
My program takes a key input to switch between states:
Ex:
private
void
Window_KeyDown(
object
sender, System.Windows.Input.KeyEventArgs e)
{
switch
(e.Key)
{
case
System.Windows.Input.Key.PageUp:
MoveBackward();
break
;
case
System.Windows.Input.Key.Next:
// MessageBox.Show(currentState.ToString());
MoveForward();
break
;
case
System.Windows.Input.Key.Escape:
Application.Current.Shutdown();
break
;
default
:
break
;
}
}
But, there are times when I'm playing a file in which I would like to temporarily suspend any input mouse/keyboard. Does anyone have any idea on how to accomplish that?
Thanks
Reply
Answers (
1
)
WPF RadioButton UserControl Group in WinForms
Wpf browser back button disable