ublic Class ChinaRing
Inherits System
Web
UI
Page
#Region
Web 窗體設計器生成的代碼
該調用是 Web 窗體設計器所必需的
<System
Diagnostics
DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents ChinaRingCkBox
As System
Web
UI
WebControls
CheckBox
Protected WithEvents ChinaRingCkBox
As System
Web
UI
WebControls
CheckBox
Protected WithEvents ChinaRingCkBox
As System
Web
UI
WebControls
CheckBox
Protected WithEvents ChinaRingCkBox
As System
Web
UI
WebControls
CheckBox
Protected WithEvents ChinaRingCkBox
As System
Web
UI
WebControls
CheckBox
Protected WithEvents ChinaRingCkBox
As System
Web
UI
WebControls
CheckBox
Protected WithEvents ChinaRingCkBox
As System
Web
UI
WebControls
CheckBox
Protected WithEvents ChinaRingCkBox
As System
Web
UI
WebControls
CheckBox
Protected WithEvents ChinaRingCkBox
As System
Web
UI
WebControls
CheckBox
Protected WithEvents ChinaRingLb
As System
Web
UI
WebControls
Label
Protected ChinaRingCkBox(
) 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(
) = ChinaRingCkBox
ChinaRingCkBox(
) = ChinaRingCkBox
ChinaRingCkBox(
) = ChinaRingCkBox
ChinaRingCkBox(
) = ChinaRingCkBox
ChinaRingCkBox(
) = ChinaRingCkBox
ChinaRingCkBox(
) = ChinaRingCkBox
ChinaRingCkBox(
) = ChinaRingCkBox
ChinaRingCkBox(
) = ChinaRingCkBox
ChinaRingCkBox(
) = ChinaRingCkBox
End Sub
Private Sub ChinaRingCkBox
_CheckedChanged(ByVal sender As System
Object
ByVal e As System
EventArgs) Handles ChinaRingCkBox
CheckedChanged
ChinaRingCkBox_CheckedChanged(
sender
e)
End Sub
Private Sub ChinaRingCkBox
_CheckedChanged(ByVal sender As System
Object
ByVal e As System
EventArgs) Handles ChinaRingCkBox
CheckedChanged
ChinaRingCkBox_CheckedChanged(
sender
e)
End Sub
Private Sub ChinaRingCkBox
_CheckedChanged(ByVal sender As System
Object
ByVal e As System
EventArgs) Handles ChinaRingCkBox
CheckedChanged
ChinaRingCkBox_CheckedChanged(
sender
e)
End Sub
Private Sub ChinaRingCkBox
_CheckedChanged(ByVal sender As System
Object
ByVal e As System
EventArgs) Handles ChinaRingCkBox
CheckedChanged
ChinaRingCkBox_CheckedChanged(
sender
e)
End Sub
Private Sub ChinaRingCkBox
_CheckedChanged(ByVal sender As System
Object
ByVal e As System
EventArgs) Handles ChinaRingCkBox
CheckedChanged
ChinaRingCkBox_CheckedChanged(
sender
e)
End Sub
Private Sub ChinaRingCkBox
_CheckedChanged(ByVal sender As System
Object
ByVal e As System
EventArgs) Handles ChinaRingCkBox
CheckedChanged
ChinaRingCkBox_CheckedChanged(
sender
e)
End Sub
Private Sub ChinaRingCkBox
_CheckedChanged(ByVal sender As System
Object
ByVal e As System
EventArgs) Handles ChinaRingCkBox
CheckedChanged
ChinaRingCkBox_CheckedChanged(
sender
e)
End Sub
Private Sub ChinaRingCkBox
_CheckedChanged(ByVal sender As System
Object
ByVal e As System
EventArgs) Handles ChinaRingCkBox
CheckedChanged
ChinaRingCkBox_CheckedChanged(
sender
e)
End Sub
Private Sub ChinaRingCkBox
_CheckedChanged(ByVal sender As System
Object
ByVal e As System
EventArgs) Handles ChinaRingCkBox
CheckedChanged
ChinaRingCkBox_CheckedChanged(
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 =
Dim ChinaRingCk As Boolean = False
If index =
Then
ChinaRingCk = True
Else
If ChinaRingCkBox(index
)
Checked Then
ChinaRingCk = True
End If
Do While i < index
If ChinaRingCkBox(i)
Checked Then
ChinaRingCk = False
End If
i = i +
Loop
End If
If Not ChinaRingCk Then
ChinaRingCkBox(index
)
Checked = Not ChinaRingCkBox(index
)
Checked
可以在這裡加一個提示
根據條件提示不能套入
或不能拿出該環
End If
End Sub
End Class
From:http://tw.wingwit.com/Article/program/net/201311/13378.html