编程语言

img iwebsms

窗体中加入下列代码,回车自动转回为TAB

发表于2004/9/28 19:18:00  1119人阅读

    '窗体中加入下列代码,回车自动转回为TAB

    Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean

        If keyData = Keys.Enter Then

            SendKeys.Send("{TAB}")

            Exit Function

        End If

    End Function
阅读全文
0 0

相关文章推荐

img
取 消
img