W
Werner Wopienka
HI NG!
Is there a better way then this code below, to get all Textboxes and
Comboboxes from a form:
Private i as Integer
Private ctrcoll As ControlCollection
ctrcoll = Me.Controls
Try
If (ctrcoll(i) Is CType(ctrcoll(i), TextBox)) Then
ctrcoll(i).Focus()
Else
If (ctrcoll(i) Is CType(ctrcoll(i), ComboBox)) Then
MsgBox("combo")
End If
End If
Catch ex As Exception
End Try
Thx 4 any advice
Werner
Is there a better way then this code below, to get all Textboxes and
Comboboxes from a form:
Private i as Integer
Private ctrcoll As ControlCollection
ctrcoll = Me.Controls
Try
If (ctrcoll(i) Is CType(ctrcoll(i), TextBox)) Then
ctrcoll(i).Focus()
Else
If (ctrcoll(i) Is CType(ctrcoll(i), ComboBox)) Then
MsgBox("combo")
End If
End If
Catch ex As Exception
End Try
Thx 4 any advice
Werner