Setting hotkey of textbox 03-17-2013, 10:47 PM
#1
how can set keys Through textbox Like This
it is work when add code
but if i need change it from application i will need to write name button in textbox
so how i can do this any one have a idea !
-Thread title changed by Moderator
Code:
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
If keyData = (TextBox1.Text) Then
Label1.Text = TextBox1.Text
End If
End Function
Code:
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
If keyData = (Keys.A) Then
Label1.Text = TextBox1.Text
End If
End Function
so how i can do this any one have a idea !
-Thread title changed by Moderator