D
Dean Slindee
The DirectCast below is a syntax error. Anyone know how to write it to do
the same as the statement above it which works when Option Strict Off?
Dim ctlArray As ArrayList)
Dim typ As String
typ = ctlArray(int).GetType.ToString
Select Case typ
Case "System.Windows.Forms.CheckBox"
ctlArray(int).Checked = False
'DirectCast(ctlArray(int), Control).Checked = False
End Select
Next
the same as the statement above it which works when Option Strict Off?
Dim ctlArray As ArrayList)
Dim typ As String
typ = ctlArray(int).GetType.ToString
Select Case typ
Case "System.Windows.Forms.CheckBox"
ctlArray(int).Checked = False
'DirectCast(ctlArray(int), Control).Checked = False
End Select
Next