Vertragsverwaltung-Klassenbibliothek  

frmAuswertungsParameter.cboxand1_CheckedChanged -Methode

[Visual Basic]
Private Sub cboxand1_CheckedChanged( _ 
ByVal sender As Object, _ 
ByVal e As EventArgs
) Handles _ 
cboxand1.CheckedChanged, _ 
cboxand2.CheckedChanged, _ 
cboxand3.CheckedChanged, _ 
cboxand4.CheckedChanged, _ 
cboxor1.CheckedChanged, _ 
cboxor2.CheckedChanged, _ 
cboxor3.CheckedChanged, _ 
cboxor4.CheckedChanged

Parameter

sender
e

Quellcode

[Visual Basic]
    Private Sub cboxand1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboxand1.CheckedChanged, _ 
cboxand2.CheckedChanged, cboxand3.CheckedChanged, cboxand4.CheckedChanged, cboxor1.CheckedChanged, cboxor2.CheckedChanged, _ 
cboxor3.CheckedChanged, cboxor4.CheckedChanged 
Dim s As String = sender.name 
l.Clear() 
s = s.Substring(Len(s) - 1, 1) 
Dim feld As String = "" 
 
If sender.name.ToString.IndexOf("and") > 0 Then feld = "cboxor" + s Else feld = "cboxand" + s 
Me.GetControl(Me, feld, l) 
For Each x As CheckBox In l 
x.Checked = False 
Next 
s = s + 1 
feld = "cbparam" + s 
l.Clear() 
Me.GetControl(Me, feld, l) 
For Each x As ComboBox In l 
x.Enabled = True 
Next 
feld = "cbop" + s 
l.Clear() 
Me.GetControl(Me, feld, l) 
For Each x As ComboBox In l 
x.Enabled = True 
Next 
feld = "cbvalue" + s 
l.Clear() 
Me.GetControl(Me, feld, l) 
For Each x As ComboBox In l 
x.Enabled = True 
Next 
 
feld = "cboxand" + s 
l.Clear() 
Me.GetControl(Me, feld, l) 
For Each x As ComboBox In l 
x.Enabled = True 
Next 
feld = "cboxor" + s 
l.Clear() 
Me.GetControl(Me, feld, l) 
For Each x As ComboBox In l 
x.Enabled = True 
Next 
 
End Sub

Forderungen

Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Siehe auch

frmAuswertungsParameter