Click here to Skip to main content
15,039,149 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all

In my application i assigned shortcut key for delete to F5 button.
but when i press F5, it use to go to the load event and again reloads the page(refresh the page)

Please tell me how to stop this..

VB
If e.Key = Key.F1 Then
           btnCouriorNew_Click(sender, e)
       ElseIf e.Key = Key.F2 Then
           btnSaveF2_Click(sender, e)
       ElseIf e.Key = Key.F3 Then
           btnFindF3_Click(sender, e)
       ElseIf e.Key = Key.F4 Then
           btnEditF4_Click(sender, e)
       ElseIf e.Key = Key.F5 Then
           btnDeleteF5_Click(sender, e)
       ElseIf e.Key = Key.F6 Then
           btnPrintF6_Click(sender, e)
       ElseIf e.Key = Key.F7 Then
           btnCancelF7_Click(sender, e)
       ElseIf e.Key = Key.Escape Then
           btnExitEsc_Click(sender, e)
       End If





Thank you
Posted
Updated 18-Oct-13 20:32pm
v2
Comments
thatraja 18-Oct-13 11:36am
   
It will be better if you include your code in your question.

And one question, you tagged the question WPF & your contains the words "refresh the page", is that right? BTW I don't have experience in WPF.....0.

1 solution

   
Comments
[no name] 18-Oct-13 2:23am
   
this is not i am looking for..
read the question..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900