I don't really know what you're asking, but if you add a
ToString()
method to your
Note
object, and then just add the note itself to the combobox, you have access to the entire note object from the combobox (because the
Items
collection is a collection of
Note
objects instead of just strings).
public class Note
{
public string Title { get; set; }
public override string ToString()
{
return Title;
}
}
Again, your question isn't all that clear.