|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
combobox displays [Namespace].[ClassName]Here is my code:
lstEditEventTypes.DisplayMember = "Name.Value" lstEditEventTypes.ValueMember = "ID" lstEditEventTypes.DataSource = m_EventTypes m_EventTypes is a collection. This worked fine until I changed the Name to a propertyholder. So, to access the name value, I have to use Name.Value. But now my combobox just displays: [MyNamespace].[MyClassName] Thanks. Matt Put the following in your class
Public Overrides Function ToString() As String Return VariableToDisplayAsComboboxText End Function Show quoteHide quote "Matt" <matt.arens@nospamremovethis-gmail.com> wrote in message news:%23m10HvPKGHA.744@TK2MSFTNGP09.phx.gbl... > Here is my code: > > lstEditEventTypes.DisplayMember = "Name.Value" > lstEditEventTypes.ValueMember = "ID" > lstEditEventTypes.DataSource = m_EventTypes > > m_EventTypes is a collection. > > This worked fine until I changed the Name to a propertyholder. So, to > access the name value, I have to use Name.Value. But now my combobox just > displays: > > [MyNamespace].[MyClassName] > > Thanks. > > Matt >
StreamWriter and BinaryWriter (same problem better explained)
StreamWriter and BinaryWriter Dynamic controls, menuitems, windowlist Advice needed on programming style IIS Allowing access to controls from another thread accessing blob fileds from oracle over write running .exe project source design question How to initiate dial up sequence |
|||||||||||||||||||||||