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
Sutton Mehaffey
NA
19
7.2k
casting a combobox selection to char
Nov 2 2011 5:20 PM
I have a Combobox named "CB_x" defined in WPF and I have selections "0,5,10,15,20". What method can I use to achieve the following (which doesn't work)?
char x;
x = (char)CB_x.SelectionBoxItem; // item selected is a string "20", I need a char 20.
It compiles, but gives a casting error. Is there to atoi() method somewhere?
Reply
Answers (
7
)
C# Encog Neural Network wrong results
Types of constructor in C#