I have a Windows Form with 30 ComboBoxes.
I want the List Items to be: D, W, M and O for the first 20 comboboxes.
I want the List Items to be Y and N for the last 10 comboboxes.
The field Name of first of the last 10 comboboxes is "FirstCustEmail".
The code below will of course work on all 30 comboboxes.
How can I modify the code below to accomplish the above?
I want the List Items to be: D, W, M and O for the first 20 comboboxes.
I want the List Items to be Y and N for the last 10 comboboxes.
The field Name of first of the last 10 comboboxes is "FirstCustEmail".
The code below will of course work on all 30 comboboxes.
How can I modify the code below to accomplish the above?
Problem Code:
Private Sub LoadComboBoxes() For Each ctrl In Controls If TypeOf (ctrl) Is ComboBox Then ctrl.items.add("D") ctrl.items.add("W") ctrl.items.add("M") ctrl.items.add("O") End If Next End Sub