vb程序如何编写按回车退出程序

2025-02-24 12:03:56
推荐回答(1个)
回答1:

dim n as integer
n=1
sub command1_click()
if n=1 then
label1.caption=“欢迎进入VB世界!按回车键继续……”
n=2
else
label1.caption=“现在进入系统”
n=1
end if
end sub