高调做事低调做人句子:VB中如何判断方向键的输入?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/05 05:29:50
VB中如何判断方向键的输入?

private sub form_keydown(keycode as integer,shift as integer)
if keycode=vbkeyleft then ^^^^^^^^
if keycode=vbkeyright then ^^^^^^^
if keycode=vbkeydown then ^^^^^^^
if keycode=vbkeyup then ^^^^^^^
end sub