Asp.net实现“九连环”小游戏
点击次数:23 次 发布日期:2008-11-27 02:17:38 作者:源代码网
|
源代码网推荐 ublic Class ChinaRing1 源代码网推荐 源代码网推荐 Inherits System.Web.UI.Page 源代码网推荐 源代码网推荐 #Region " Web 窗体设计器生成的代码 " 源代码网推荐 源代码网推荐 "该调用是 Web 窗体设计器所必需的。 源代码网推荐 源代码网推荐 <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingCkBox1 As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingCkBox2 As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingCkBox3 As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingCkBox4 As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingCkBox5 As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingCkBox6 As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingCkBox7 As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingCkBox8 As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingCkBox9 As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 Protected WithEvents ChinaRingLb1 As System.Web.UI.WebControls.Label 源代码网推荐 源代码网推荐 Protected ChinaRingCkBox(8) As System.Web.UI.WebControls.CheckBox 源代码网推荐 源代码网推荐 "注意: 以下占位符声明是 Web 窗体设计器所必需的。 源代码网推荐 源代码网推荐 "不要删除或移动它。 源代码网推荐 源代码网推荐 Private designerPlaceholderDeclaration As System.Object 源代码网推荐 源代码网推荐 Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 源代码网推荐 源代码网推荐 "CODEGEN: 此方法调用是 Web 窗体设计器所必需的 源代码网推荐 源代码网推荐 "不要使用代码编辑器修改它。 源代码网推荐 源代码网推荐 InitializeComponent() 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 #End Region 源代码网推荐 源代码网推荐 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 源代码网推荐 源代码网推荐 ChinaRingCkBox(0) = ChinaRingCkBox1 源代码网推荐 源代码网推荐 ChinaRingCkBox(1) = ChinaRingCkBox2 源代码网推荐 源代码网推荐 ChinaRingCkBox(2) = ChinaRingCkBox3 源代码网推荐 源代码网推荐 ChinaRingCkBox(3) = ChinaRingCkBox4 源代码网推荐 源代码网推荐 ChinaRingCkBox(4) = ChinaRingCkBox5 源代码网推荐 源代码网推荐 ChinaRingCkBox(5) = ChinaRingCkBox6 源代码网推荐 源代码网推荐 ChinaRingCkBox(6) = ChinaRingCkBox7 源代码网推荐 源代码网推荐 ChinaRingCkBox(7) = ChinaRingCkBox8 源代码网推荐 源代码网推荐 ChinaRingCkBox(8) = ChinaRingCkBox9 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox1.CheckedChanged 源代码网推荐 源代码网推荐 ChinaRingCkBox_CheckedChanged(1, sender, e) 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox2.CheckedChanged 源代码网推荐 源代码网推荐 ChinaRingCkBox_CheckedChanged(2, sender, e) 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox3.CheckedChanged 源代码网推荐 源代码网推荐 ChinaRingCkBox_CheckedChanged(3, sender, e) 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox4.CheckedChanged 源代码网推荐 源代码网推荐 ChinaRingCkBox_CheckedChanged(4, sender, e) 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox5.CheckedChanged 源代码网推荐 源代码网推荐 ChinaRingCkBox_CheckedChanged(5, sender, e) 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox6_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox6.CheckedChanged 源代码网推荐 源代码网推荐 ChinaRingCkBox_CheckedChanged(6, sender, e) 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox7_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox7.CheckedChanged 源代码网推荐 源代码网推荐 ChinaRingCkBox_CheckedChanged(7, sender, e) 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox8_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox8.CheckedChanged 源代码网推荐 源代码网推荐 ChinaRingCkBox_CheckedChanged(8, sender, e) 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox9_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox9.CheckedChanged 源代码网推荐 源代码网推荐 ChinaRingCkBox_CheckedChanged(9, sender, e) 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 Private Sub ChinaRingCkBox_CheckedChanged(ByVal index As Integer, ByVal sender As System.Object, ByVal e As System.EventArgs) 源代码网推荐 源代码网推荐 Dim i As Integer 源代码网推荐 源代码网推荐 i = 0 源代码网推荐 源代码网推荐 Dim ChinaRingCk As Boolean = False 源代码网推荐 源代码网推荐 If index = 1 Then 源代码网推荐 源代码网推荐 ChinaRingCk = True 源代码网推荐 源代码网推荐 Else 源代码网推荐 源代码网推荐 If ChinaRingCkBox(index - 2).Checked Then 源代码网推荐 源代码网推荐 ChinaRingCk = True 源代码网推荐 源代码网推荐 End If 源代码网推荐 源代码网推荐 Do While i < index - 2 源代码网推荐 源代码网推荐 If ChinaRingCkBox(i).Checked Then 源代码网推荐 源代码网推荐 ChinaRingCk = False 源代码网推荐 源代码网推荐 End If 源代码网推荐 源代码网推荐 i = i + 1 源代码网推荐 源代码网推荐 Loop 源代码网推荐 源代码网推荐 End If 源代码网推荐 源代码网推荐 If Not ChinaRingCk Then 源代码网推荐 源代码网推荐 ChinaRingCkBox(index - 1).Checked = Not ChinaRingCkBox(index - 1).Checked 源代码网推荐 源代码网推荐 "可以在这里加一个提示,根据条件提示不能套入,或不能拿出该环。 源代码网推荐 源代码网推荐 End If 源代码网推荐 源代码网推荐 End Sub 源代码网推荐 源代码网推荐 End Class 源代码网推荐 源代码网推荐 源代码网推荐 源代码网供稿. |
