一道VB代码题

来源:百度知道 编辑:UC知道 时间:2024/05/09 09:44:58
第一题:创建一个登录界面,由两个标签( Label1、Labe12 )和两个文本框 (txtName 、 txt Password )组成。其中,口令文本框 (txtPassword )的 PasswordChar 属性设置为“*”,运行时要求输入姓名和密码,如果在两个文本框中分别输入“Guest:”和“12345”,则界面显示“欢迎使用本系统!”,否则显示“对不起,你不是本系统用户!”。
第二题:用函数调用的方法计算∑n

1.if txtname.text="Guest:" and password.text="12345" then
print "欢迎使用本系统 !"
else
print "对不起,你不是本系统用户!"
end if
2.
for 1 to n
∑n=∑n+n
next n

Guest: 应为:Guest吧
1.if txtname.text="Guest" and password.text="12345" then
msgbox "欢迎使用本系统 !"
else
msgbox "对不起,你不是本系统用户!"
end if
2.
private function ∑n(n as integer)
dim i as integer
for i=1 to n
∑n=∑n+i
next
end function

朋友,你看下,有什么还不懂的,发下信息问下!

求VB的一道小的程序题代码。 一道vb编程题,代码什么意思,看不懂? 请教一道VB题 求一道vb题 一道VB题 一道vb编程题 还是一道VB题!!!! 一道简单VB题 求解一道VB题 一道VB编程题