Hey guys / gals,
I have a question that I am shocked I haven't had a need to ask before. I am mostly an ASP.net developer but I am trying to work on a WinForms app and noticed a large difference between the ASP.NET combobox (html select) and that of WinForms. I found (maybe incorrectly so) that WinForm's combobox only has a "label" whereas ASP.NET allows you to specify a "label" and a "value".
I am looking to use a WinForms combobox (or another comparable control) with a label and a value (Foobar / 42329). Is this possible? I have attempted to search for the answer but haven't come up with much. If there is no way to accomplish that, how does one go ahead and design a WinForm combobox that would represent say Cities with their associated database id?
Toronto / 2324 Montreal / 64547 Vancouver / 1213
Thanks and sorry for the newb question :)