TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
developer 0
NA
8
0
CheckedListBox Problems
Sep 2 2004 5:31 PM
I am trying to cast the CheckedListBox.CheckedItems[i] to a struct. Here is some of my code. string name = ((customer)checkedListBox1.CheckedItems[i]).name; customer is defined as follows: private struct customer { public string number; public string name; public override string ToString() { return this.number + "\t-- " + this.name; } } The compile tells me that it is an invalid cast.
Reply
Answers (
0
)
c# syntax question
Closing Streams