求用C#编写一个单项选择题功能的程序的源代码
(已有数据库,里面有不同类型的题目),可以实现设置不同的题目类型来回答问题,自动提示是否错误,可以帮忙写下源代码吗?我可以追加财富悬赏,急用啊!...
(已有数据库,里面有不同类型的题目),可以实现设置不同的题目类型来回答问题,自动提示是否错误,可以帮忙写下源代码吗?我可以追加财富悬赏,急用啊!
展开
2个回答
2011-04-20
展开全部
钮分别叫RadioButton1,RadioButton2,拖个提交按钮叫button1,拖个下一题按钮next,拖个重来按钮ag,拖个TextArea显示结果
button1.addEventListener(MouseEvent.CLICK, tijiao);
ag.addEventListener(MouseEvent.CLICK, again)
private function tijiao(e:MouseEvent):void
{
2个按钮先隐藏
next.visible = false;
ag.visible = false;
如果RadioButton1正确,RadioButton2错误
if(radioButton1.selected){
textArea.text = "正确"
next.visible = true;
}else{
textArea.text = "错误"
ag.visible = true;
}
}
private function again(e:MouseEvent):void
{
radioButton1.selected = false;
radioButton2.selected = false;
next.visible = false;
ag.visible = false;
}
另外,站长团上有产品团购,便宜有保证
button1.addEventListener(MouseEvent.CLICK, tijiao);
ag.addEventListener(MouseEvent.CLICK, again)
private function tijiao(e:MouseEvent):void
{
2个按钮先隐藏
next.visible = false;
ag.visible = false;
如果RadioButton1正确,RadioButton2错误
if(radioButton1.selected){
textArea.text = "正确"
next.visible = true;
}else{
textArea.text = "错误"
ag.visible = true;
}
}
private function again(e:MouseEvent):void
{
radioButton1.selected = false;
radioButton2.selected = false;
next.visible = false;
ag.visible = false;
}
另外,站长团上有产品团购,便宜有保证
2011-04-15
展开全部
钮分别叫RadioButton1,RadioButton2,拖个提交按钮叫button1,拖个下一题按钮next,拖个重来按钮ag,拖个TextArea显示结果
button1.addEventListener(MouseEvent.CLICK, tijiao);
ag.addEventListener(MouseEvent.CLICK, again)
private function tijiao(e:MouseEvent):void
{
2个按钮先隐藏
next.visible = false;
ag.visible = false;
如果RadioButton1正确,RadioButton2错误
if(radioButton1.selected){
textArea.text = "正确"
next.visible = true;
}else{
textArea.text = "错误"
ag.visible = true;
}
}
private function again(e:MouseEvent):void
{
radioButton1.selected = false;
radioButton2.selected = false;
next.visible = false;
ag.visible = false;
}
另外,站长团上有产品团购,便宜有保证
button1.addEventListener(MouseEvent.CLICK, tijiao);
ag.addEventListener(MouseEvent.CLICK, again)
private function tijiao(e:MouseEvent):void
{
2个按钮先隐藏
next.visible = false;
ag.visible = false;
如果RadioButton1正确,RadioButton2错误
if(radioButton1.selected){
textArea.text = "正确"
next.visible = true;
}else{
textArea.text = "错误"
ag.visible = true;
}
}
private function again(e:MouseEvent):void
{
radioButton1.selected = false;
radioButton2.selected = false;
next.visible = false;
ag.visible = false;
}
另外,站长团上有产品团购,便宜有保证
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询