title: Pass a ComboBox as a parameter
body: <p>I need to pass a ComboBox to a method in a different class module.  First I defined the method in the class module as:</p>
  
  <pre><code>Public Sub initializeCombo(ByVal s As String, ByRef c As ComboBox)
  </code></pre>
  
  <p>And called it from a form:</p>
  
  <pre><code>initializeCombo(s, frmMyForm.cboBox)
  </code></pre>
  
  <p>This results in a type mismatch.  This works if I define the method in the code behind the form, but not in a separate class module.</p>