如何在visual basic中进行测验 [英] How to make quiz in visual basic

查看:72
本文介绍了如何在visual basic中进行测验的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在visual basic中进行测验?

请帮助。

解决方案

 如果 InputBox( 是或否?,< span class =code-string> 测验)=   然后 
MessageBox.Show( 正确!
其他
MessageBox.Show( 错误!
结束 如果





:thumbsup :; P


< blockquote>你只需使用单选按钮让用户选择正确的答案,然后在你的代码中输入
,检查所选答案是否正确。 />


目前,我正在开发一个非常简单的VB程序来做到这一点。

一旦完成,我可以发送给你你的信息。



干杯!


How to make quiz in visual basic?
Please help.

解决方案

If InputBox("Yes or No?", "Quiz") = "Yes" Then
    MessageBox.Show("Correct!")
Else
    MessageBox.Show("Wrong!")
End If



:thumbsup: ;P


You just use radio buttons to allow the user to select the correct answer and
then in your codes, check to see if the selected answer is correct.

At the moment, I am developing a very simple VB program to do just that.
Once finished, I can send it to you just for your info.

Cheers!


这篇关于如何在visual basic中进行测验的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆