弃后惹不起txt下载:VB中如何判断方向键的输入?

来源:百度文库 编辑:高考问答 时间:2024/07/04 03:28:26
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