有VB高手吗?

来源:百度知道 编辑:UC知道 时间:2024/04/30 00:52:25
帮忙写几个典型的VB编码
2级用的

是VB编程吧。你要考二级VB吧,我也是啊。最经典我觉得是:
option explicit
private sub form1_click
text1.text = ""
if ch1.value = 1 then
text1.text = "英语班"
end if
if ch2.value then
if text1.text <> "" then text1.text = text.text + "和"
text1.text = text1.text + "计算机班"
end if
if text1.text <> "" then
text1.text = "报名参加" + text1.text
end if
end sub
即是在窗体上画文本框text1 和 复选框 ch1.caption = "英语班" 和复选框 ch2。caption = "计算机班"
这是你所想要的吗?希望你也成功吧。