C# combo as parameter to class library

We are moving to C# from VB6. So needless to say we are a bit spoiled. We commonly provided class methods that accepted a combobox as a parameter, and the method would populate the combo. We would like to do somthing simular in C#....but it seems System.Windows.Forms.combobox is not accessable from a class library.
So my question is.....Is there a way to pass a combobox as a parameter or is there a different method of getting a combo populated from a class method. I do realise I can use a collection but I would like to keep the steps needed to populate the combo as few as posible like we did in VB6.....which was one call.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

well ... one way to go is to declare the combo parameter as a simple object.

the using reflection, you call the methods of the combobox which you know exist since you pass a combobox :)

just an ugly workaropund. you should probalby create a class wrapper that does this so you can re-use the code. I would have done it for you but I need to run in about 15 min and I don't think I can make it in that time. sorry.

anyway, if noone comes up with  anicer solution or with the wrapper implementation, I will do it tomorrow.

cheers and Happy new year.
It is accessible, you just have to add a reference to System.Windows.Forms to your project.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.