本文整理汇总了VB.NET中System.Windows.Forms.KeysConverter类的典型用法代码示例。如果您正苦于以下问题:VB.NET KeysConverter类的具体用法?VB.NET KeysConverter怎么用?VB.NET KeysConverter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KeysConverter类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: Form1
Public Class Form1
Private Sub KeyDownWork(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) _
Handles TextBox1.KeyDown
MessageBox.Show(e.KeyCode, "KeyDown")
MessageBox.Show(e.KeyCode.ToString(), "KeyDown")
Dim kc As KeysConverter = New KeysConverter()
MessageBox.Show(kc.ConvertToString(e.KeyCode), "KeyDown")
End Sub
Private Sub KeyPressWork(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) _
Handles TextBox1.KeyPress
MessageBox.Show(e.KeyChar, "KeyPress")
MessageBox.Show(e.KeyChar.ToString(), "KeyPress")
End Sub
End Class