注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

xian827991006

专注于DotNet编程,QlikView开发,网站seo,各种软件工具,互联网

 
 
 

日志

 
 
关于我

爱看书、爱探索的人. 目前关注与QlikView开发,推荐一个QlikView资源站。www.qlikviewcn.com

网易考拉推荐

(转)Visual Basic .NET 中 Key Code 常数的更改  

2012-01-04 16:01:15|  分类: C#和VS |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
Visual Basic .NET 中 Key Code 常数的更改

下表显示了 Visual Basic 6.0 Key Code 常数和值以及它们的 Visual Basic .NET 等效项。


Visual Basic 6.0 Visual Basic .NET 等效项
vbKeyLButton (1) System.Windows.Forms.Keys.LButton
vbKeyRButton (2) System.Windows.Forms.Keys.RButton
vbKeyCancel (3) System.Windows.Forms.Keys.Cancel
vbKeyMButton (4) System.Windows.Forms.Keys.MButton
vbKeyBack (8) System.Windows.Forms.Keys.Back
vbKeyTab (9) System.Windows.Forms.Keys.Tab
vbKeyClear (12) System.Windows.Forms.Keys.Clear
vbKeyReturn (13) System.Windows.Forms.Keys.Return
vbKeyShift (16) System.Windows.Forms.Keys.ShiftKey
vbKeyControl (17) System.Windows.Forms.Keys.ControlKey
vbKeyMenu (18) System.Windows.Forms.Keys.Menu
vbKeyPause (19) System.Windows.Forms.Keys.Pause
vbKeyCapital (20) System.Windows.Forms.Keys.Capital
vbKeyEscape (27) System.Windows.Forms.Keys.Escape
vbKeySpace (32) System.Windows.Forms.Keys.Space
vbKeyPageUp (33) System.Windows.Forms.Keys.PageUp
vbKeyPageDown (34) System.Windows.Forms.Keys.PageDown
vbKeyEnd (35) System.Windows.Forms.Keys.End
vbKeyHome (36) System.Windows.Forms.Keys.Home
vbKeyLeft (37) System.Windows.Forms.Keys.Left
vbKeyUp (38) System.Windows.Forms.Keys.Up
vbKeyRight (39) System.Windows.Forms.Keys.Right
vbKeyDown (40) System.Windows.Forms.Keys.Down
vbKeySelect (41) System.Windows.Forms.Keys.Select
vbKeyPrint (42) System.Windows.Forms.Keys.Print
vbKeyExecute (43) System.Windows.Forms.Keys.Execute
vbKeySnapshot (44) System.Windows.Forms.Keys.Snapshot
vbKeyInsert (45) System.Windows.Forms.Keys.Insert
vbKeyDelete (46) System.Windows.Forms.Keys.Delete
vbKeyHelp (47) System.Windows.Forms.Keys.Help
vbKeyNumlock (144) System.Windows.Forms.Keys.Numlock
vbKeyScrollLock (145) System.Windows.Forms.Keys.Scroll

字母 Key Code 常数


Visual Basic 6.0 Visual Basic .NET 等效项
VbKeyA (65) System.Windows.Forms.Keys.A
VbKeyB (66) System.Windows.Forms.Keys.B
VbKeyC (67) System.Windows.Forms.Keys.C
VbKeyD (68) System.Windows.Forms.Keys.D
VbKeyE (69) System.Windows.Forms.Keys.E
VbKeyF (70) System.Windows.Forms.Keys.F
VbKeyG (71) System.Windows.Forms.Keys.G
VbKeyH (72) System.Windows.Forms.Keys.H
VbKeyI (73) System.Windows.Forms.Keys.I
VbKeyJ (74) System.Windows.Forms.Keys.J
VbKeyK (75) System.Windows.Forms.Keys.K
VbKeyL( 76) System.Windows.Forms.Keys.L
vbKeyM (77) System.Windows.Forms.Keys.M
VbKeyN (78) System.Windows.Forms.Keys.N
VbKeyO (79) System.Windows.Forms.Keys.O
VbKeyP( 80) System.Windows.Forms.Keys.P
VbKeyQ (81) System.Windows.Forms.Keys.Q
VbKeyR (82) System.Windows.Forms.Keys.R
VbKeyS (83) System.Windows.Forms.Keys.S
VbKeyT (84) System.Windows.Forms.Keys.T
VbKeyU (85) System.Windows.Forms.Keys.U
VbKeyV (86) System.Windows.Forms.Keys.V
VbKeyW (87) System.Windows.Forms.Keys.W
VbKeyX (88) System.Windows.Forms.Keys.X
VbKeyY (89) System.Windows.Forms.Keys.Y
VbKeyZ (90) System.Windows.Forms.Keys.Z

数字键常数


Visual Basic 6.0 Visual Basic .NET 等效项
vbKey0 (48) System.Windows.Forms.Keys.D0
vbKey1 (49) System.Windows.Forms.Keys.D1
vbKey2 (50) System.Windows.Forms.Keys.D2
vbKey3 (51) System.Windows.Forms.Keys.D3
vbKey4 (52) System.Windows.Forms.Keys.D4
vbKey5 (53) System.Windows.Forms.Keys.D5
vbKey6 (54) System.Windows.Forms.Keys.D6
vbKey7 (55) System.Windows.Forms.Keys.D7
vbKey8 (56) System.Windows.Forms.Keys.D8
vbKey9 (57) System.Windows.Forms.Keys.D9

数字键盘键常数


Visual Basic 6.0 Visual Basic .NET 等效项
vbKeyNumpad0 (96) System.Windows.Forms.Keys.NumPad0
vbKeyNumpad1 (97) System.Windows.Forms.Keys.NumPad1
vbKeyNumpad2 (98) System.Windows.Forms.Keys.NumPad2
vbKeyNumpad3 (99) System.Windows.Forms.Keys.NumPad3
vbKeyNumpad4 (100) System.Windows.Forms.Keys.NumPad4
vbKeyNumpad5 (101) System.Windows.Forms.Keys.NumPad5
vbKeyNumpad6 (102) System.Windows.Forms.Keys.NumPad6
vbKeyNumpad7 (103) System.Windows.Forms.Keys.NumPad7
vbKeyNumpad8 (104) System.Windows.Forms.Keys.NumPad8
vbKeyNumpad9 (105) System.Windows.Forms.Keys.NumPad9
VbKeyMultiply (106) System.Windows.Forms.Keys.Multiply
VbKeyAdd (107) System.Windows.Forms.Keys.Add
VbKeySeparator (108) System.Windows.Forms.Keys.Separator
VbKeySubtract (109) System.Windows.Forms.Keys.Subtract
VbKeyDecimal (110) System.Windows.Forms.Keys.Decimal
VbKeyDivide (111) System.Windows.Forms.Keys.Divide

功能键常数


Visual Basic 6.0 Visual Basic .NET 等效项
vbKeyF1 (112) System.Windows.Forms.Keys.F1
vbKeyF2 (113) System.Windows.Forms.Keys.F2
vbKeyF3 (114) System.Windows.Forms.Keys.F3
vbKeyF4 (115) System.Windows.Forms.Keys.F4
vbKeyF5 (116) System.Windows.Forms.Keys.F5
vbKeyF6 (117) System.Windows.Forms.Keys.F6
vbKeyF7 (118) System.Windows.Forms.Keys.F7
vbKeyF8 (119) System.Windows.Forms.Keys.F8
vbKeyF9 (120) System.Windows.Forms.Keys.F9
vbKeyF10 (121) System.Windows.Forms.Keys.F10
vbKeyF11 (122) System.Windows.Forms.Keys.F11
vbKeyF12 (123) System.Windows.Forms.Keys.F12
vbKeyF13 (124) System.Windows.Forms.Keys.F13
vbKeyF14 (125) System.Windows.Forms.Keys.F14
vbKeyF15 (126) System.Windows.Forms.Keys.F15
vbKeyF16 (127) System.Windows.Forms.Keys.F16

请参见

Visual Basic .NET 中常数的变化 | Keys 枚举 | 常数和枚举


C#和VB.net的值相同。
  评论这张
 
阅读(779)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017