Hai.
i want to trigger a buttons event using keyboard in WPF
i tried like this
Button name "Enter"
private void Enter_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
<span style="white-space
re {
<span style="white-space
re if(e.Key == Key.A)
<span style="white-space
re {
<span style="white-space
re MessageBox.Show("Entering");
<span style="white-space
re }
<span style="white-space
re }
My Problem is : event is not working by pressing "a" immediatly after opening the application.
first i have to click the button then only the Event is working for pressing keyboard key "a".
Please Help Me... Thank You
View the full article
i want to trigger a buttons event using keyboard in WPF
i tried like this
Button name "Enter"
private void Enter_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

<span style="white-space

My Problem is : event is not working by pressing "a" immediatly after opening the application.
first i have to click the button then only the Event is working for pressing keyboard key "a".
Please Help Me... Thank You
View the full article