> Hey...
> How are you doing?
[quoted text clipped - 16 lines]
> thanks in advance
> Jose
OK.
what i want is that when i drag the CustomcomboBox to the form, then i
specify in the properties windows the name of the Entity (custom Object...
Employee for example).
So, using reflection, i invoke the Employee object, and then its methods
LoadCombo. This method returns an arraylist with the ID and FullName of the
Employee.
Ok, I want to create one and only customComboBox for this. Cause every
entity is going to have a LoadCombo method that will populate a Combo (by
returning an arraylist). So, very easy would be just to drag the
customcombobox to the form, write in the property window the entity name and
voila, when press F5 you should see the combo populated with the values.
> Jose,
>
[quoted text clipped - 22 lines]
>> thanks in advance
>> Jose
Kevin Spencer - 09 Jan 2007 19:19 GMT
As long as every object that is associated with a ComboBox has a property
that can be DataBound to the ComboBox, you shouldn't need to do this at all.
Just use normal DataBinding.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com
Where there's a Will, there's a William.
> OK.
>
[quoted text clipped - 38 lines]
>>> thanks in advance
>>> Jose
Stoitcho Goutsev (100) - 10 Jan 2007 15:16 GMT
I agree with Kevin. Take a look at the databinding feature. At the very this
is what databinding is all about.

Signature
Stoitcho Goutsev (100)
> As long as every object that is associated with a ComboBox has a property
> that can be DataBound to the ComboBox, you shouldn't need to do this at
[quoted text clipped - 42 lines]
>>>> thanks in advance
>>>> Jose