المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : quick combobox question



C# Programming
11-22-2009, 02:30 PM
it's 00:30 and I lost my mind in a few beers, came home and would do some coding before I hit the showers, but now I forgot an important part...

I remember how to add values and text to a combobox via a datasource, but can any remember how to add both text and value in a static way?

ie.

Combobox1.Items.Add(new ????("text","value"));



yes, yes I know, don't code drunk.