title: How to change a property for all ComboBoxes?
body: <p>I have several <code>ComboBoxes</code> in my form. I need to change their <code>DropDownStyle</code>. Is there any way to do this. These all <code>ComboBoxes</code> were in 5 Tabs.</p>
  <p>Below I do some example.</p>
  <pre><code>For Each tbxControl As Control In Me.Controls
      If TypeOf (tbxControl) Is TextBox Then
          tbxControl.ForeColor = Color.Black
      End If
  Next
  </code></pre>
  <p>Sample Of The code as follows</p>
  <pre><code> With cboProvince
                      .DropDownStyle = ComboBoxStyle.DropDown
                      .Text = CStr(odrEmployeeMasterRecordsSearch(&quot;Province_Name&quot;))
                  End With
                  With cboDistrict
                      .DropDownStyle = ComboBoxStyle.DropDown
                      .Text = CStr(odrEmployeeMasterRecordsSearch(&quot;District_Name&quot;))
                  End With
                  With cboPostalCode
                      .DropDownStyle = ComboBoxStyle.DropDown
                      .Text = CStr(odrEmployeeMasterRecordsSearch(&quot;PostOffice&quot;))
                  End With
  </code></pre>