marvinklein Posted November 8, 2003 Posted November 8, 2003 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... Quote
Administrators PlausiblyDamp Posted November 8, 2003 Administrators Posted November 8, 2003 You will need to override the Shape.ToString method so it returns the correct name. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.