自动显示下一个问题而不点击下一步按钮 [英] automatically show next question without clicking next button

查看:59
本文介绍了自动显示下一个问题而不点击下一步按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,



我正在创建问题集,我想在不使用Next Button的情况下逐一显示问题,以便我能做到这一点。如果Que.1完成,那么在c#

解决方案

中自动显示第二个问题)这取决于你如何检测问题是完成 - 如果你正在使用单选按钮或复选框,这是非常微不足道的(尽管使用可能非常烦人)。如果你允许文本答案很多,那么你必须检测到用户已经完成了他的答案,而不是在他喝咖啡时暂停,或者考虑措辞时要困难得多。



使用收音机/复选框,您可以使用Click / CheckChanged事件切换到下一个问题,使用文本框,最好的可能是离开事件。



究竟你如何显示我们不能说的下一个问题 - 我们不知道你的应用程序是什么样的,更不用说它的工作方式或它包含的控件了! :笑:

Dear sir,

I am creating question set and i want to show one by one question without using Next Button so how i can do this.(ex.if Que.1 is finished then automatically display 2nd question to the same fowm)in c#

解决方案

That depends on how you detect that the questions is "finished" - if you are using radio buttons, or a check box then it's pretty trivial (although probably very annoying to use). If you are allowing text answers that it's a lot, lot harder as you have to detect that the user has finished writing his answer, rather than paused while he drinks his coffee, or considers the wording.

With radio/check boxes, you can use the Click / CheckChanged event to switch to the next question, with a text box, the best might be the Leave event.

Exactly how you display the next question we can't say - we have no idea what you application looks like, much less how it works or what controls it contains! :laugh:


这篇关于自动显示下一个问题而不点击下一步按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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