pravin Posted September 21, 2011 Report Share Posted September 21, 2011 Hi all, can any one tell me how to add random colors in combobox while scroling or click please help. Quote Link to comment
Ravi Beniwal Posted September 21, 2011 Report Share Posted September 21, 2011 Hi Pravin, can you please elaborate on exactly what you want to achieve? Quote Link to comment
pravin Posted September 22, 2011 Author Report Share Posted September 22, 2011 Hi Ravi, once we mouse down on combobox that time it shows the no. of items in the combobox, i want to insert colors on that items in the combobox. Pravin Quote Link to comment
Ravi Beniwal Posted September 22, 2011 Report Share Posted September 22, 2011 So let's say we have the combo box below, with the mouse clicked on the drop down symbol to show the list of items: For ease and clarity of communication, can you just pop this image in Paint and add some color to show what you want to do? Do you want to color any or each item in a different color? If so, it might not be possible to do that with the native combo box. However, if you must have that functionality, we can create a workaround. Quote Link to comment
Samapico Posted September 22, 2011 Report Share Posted September 22, 2011 You could use a listbox... it's pretty easy to set colors to cells/rows with that. Quote Link to comment
Ravi Beniwal Posted September 23, 2011 Report Share Posted September 23, 2011 clicking on the combo box (or what looks like a combo box, but is just a string control) can pop up a list box, where you can set different colors and when the user clicks on the list box, the value is copied to the combo box and the list box hides. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.