Results 1 to 2 of 2

Thread: listbox display

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283

    listbox display

    when i add an item of type shape (which is a class i made), then it is displayed as myAppName.Shape in the listbox. how do i get it to display it as shape.name, which is the name property stored as a string. i realize i could add shape.name, but then i would lose the rest of the information of the shape object. i want all the data of each object saved in the listbox, but i want the display to be shape.name\
    thanks for all the quick answers...

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You can set the DisplayMember property of the listbox to "Name" and that should do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width