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
Riddhi Valecha
441
3.3k
413.1k
Winforms-Combobox, Listbox and Enums - URGENT
Jun 14 2013 9:14 AM
Hi all...
I need help in Combo Box, List box and Enums in Windows Applications in C#.
My requirement is -
I have an Enum - Colours.
public enum Colours
{
Red=1, Blue, Green, Purple, Brown, Yellow , Black}
I want to bind this enum with combo box in such a way that-
Combo Box items are - Red, Blue, Green, Purple, Brown, Yellow , Black.
Combo Box Value Member - Index of colours i.e. 1,2,3,5,6,7.
Listbox items are - Red, Blue, Green, Purple, Brown, Yellow , Black.
ListBox selectedValue -Index of colours i.e. 1,2,3,5,6,7.
----------
Scenario-When user selects a colour(say Blue), then value (here 2) should be stored in database.
Please help..
Thanks all in advance
Reply
Answers (
3
)
error:package load failure
How to refresh parent window after close the popup window