C

C

  • NA
  • 3
  • 0

Forms and ListBoxes

Mar 27 2009 12:27 PM

Maybe there's a better way to handle child forms, but the functionality I'm trying to create is :

  • A main form can create multiple instances of a child form.
  • A list of the child forms is maintained in a ListBox on the main form.
  • The main form can access child form properties by clicking one of the child form names in the ListBox.

The problem is forms are added to the ListBox, the list grows and I can select forms in the list, but the ListBox has no text.  Normally when adding objects to a ListBox, text from the the ToString method is displayed in the list.  My forms have a ToString method, but the text doesn't show in the ListBox.  Any suggestions?


Answers (2)