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 FunctionCode:
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 Functionso how i can do this any one have a idea !
-Thread title changed by Moderator


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)



![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)
:angel:


![[Image: kjKks6Y.png]](http://i.imgur.com/kjKks6Y.png)