Sure. All you have to do is wrap the functionality of the combobox with
a public function:
Public Function AddItem(sString As String) ' you could add full add-item
support if you wanted
cboYourCombo.AddItem sString
End Function
I'm a wee bit confused as to what you are trying to do. I've assumed
the combobox is on your ActiveX Control, and your ActiveX Control is on a
form.
- Chuck
----- Original Message -----
From: "nitai mahato" <nitai@s...>
To: "professional vb" <pro_vb@p...>
Sent: Thursday, April 19, 2001 9:12 PM
Subject: [pro_vb] Add recrods from class moule to Form
>
>
> I want to add records in the combo box through Additem methord through
> class module.I mean ... my combo box at form but this addin method will be
> triggered from the class module through funtion. and when i call that
> funtion through form all the value from the table will be added in the
> combobox.
>
> Can any one hemp me how to write code for that.
>
>
> BR
> nitai