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
sachi vasishta
NA
252
0
color coding
Jun 18 2009 3:21 AM
Hi,
In a form called form1 I have a combobox and a color dialog and a button. For each item in combobox I will select a color and click the OK button. On clicking the OK button I will store the itemname of combobox and colorcode(hashcode) of that color in a db table called itemcolor. Now in another form called form2 I have a datagridview and a combobox. When I select a item in combobox of form2 the datagridview's first row should be set to the color which matches the itemname selected in the combobox of form2 with the itemname stored in the database.
Now my question is how to apply color hash code in particular row of gridv Like,
(which type of variable to use here ?? ) =colordailog1.color.gethashcode();
and also when I stored the itemname and color for each item some of the code's value are negative like -876890,-2243678, etc. Is it no problem?
Thanks
Reply
Answers (
5
)
Mainforms and custom controls
Progressbar not showing