What would be a good way to convert this code?
I want to clear all of the controls on my form without calling each one independently. This is the code in VB6. The code advisor said that this was not going to work (I forgot the actual error).
Are the form controls still called ActiveX controls?VB Code:
Dim ctl As Control For Each ctl In Me.Controls If TypeOf ctl Is TextBox Then ctl.Text = "" ElseIf TypeOf ctl Is OptionButton Then ctl.Value = 0 ElseIf TypeOf ctl Is CheckBox Then ctl.Value = 0 End If Next
Also, are there any references that might help with understanding the changes from VB6 to .NET?


Reply With Quote