Vertragsverwaltung-Klassenbibliothek  

frmAuswertungsParameter.cbvalue1_DropDown -Methode

[Visual Basic]
Private Sub cbvalue1_DropDown( _ 
ByVal sender As Object, _ 
ByVal e As EventArgs
) Handles _ 
cbvalue1.DropDown, _ 
cbvalue2.DropDown, _ 
cbvalue3.DropDown, _ 
cbvalue4.DropDown, _ 
cbvalue5.DropDown

Parameter

sender
e

Quellcode

[Visual Basic]
    Private Sub cbvalue1_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbvalue1.DropDown, cbvalue2.DropDown, _ 
cbvalue3.DropDown, cbvalue4.DropDown, cbvalue5.DropDown 
Try 
Dim s As String = sender.name 
s = s.Substring(Len(s) - 1, 1) 
Dim nr As Integer = s 
Dim param As New ComboBox 
 
Dim op As New ComboBox 
Dim val As New ComboBox 
 
 
Dim feld As String 
Dim dr As DataRow 
feld = "cbparam" + Trim(Str(nr)) 
l.Clear() 
Me.GetControl(Me, feld, l) 
param = l.Item(0) 
 
feld = "cbvalue" + Trim(Str(nr)) 
l.Clear() 
Me.GetControl(Me, feld, l) 
val = l.Item(0) 
 
dr = Me.Findrow(param.Text) 
 
If dr.Item("Paramtype") = "Datum" Then 
Dim f As New frmCalendar 
 
f.Top = val.Top + val.Height 
f.Left = val.Left + val.Width - 10 
f.ShowDialog() 
If f.DialogResult = Windows.Forms.DialogResult.OK Then 
l.Clear() 
feld = "cbvalue" + Trim(Str(nr)) 
l.Clear() 
Me.GetControl(Me, feld, l) 
param = l.Item(0) 
param.Text = f.MonthCalendar1.SelectionRange.Start.Date 
End If 
End If 
Catch ex As Exception 
 
End Try 
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