sachi vasishta

sachi vasishta

  • NA
  • 277
  • 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

Answers (5)