I have made an activex control that is a progress bar but WAY better looking than the one that comes with vb5. this progress bar uses a gradient as the indicator of progress instead of those stupid HIGHLY unaccurate boxes. anyways, i have a property for the control that has preset gradients made for it, such as "white to black" which the gradient starts white and ends black, also "red to green", "blue to yellow" and etc. but i also want to add a new property where the user of the control can choose the start color and end color in the properties. for example, the property "grad_start" can be clicked on so you can choose a color as if it is the "backcolor" control, also the property "grad_end" will be the same. now once the user choose two colors, i want it to make a gradient from the "grad_start" color to the "grad_end" color. how would i do this? i hope you understand what im trying to do, if you dont totally get me then tell me so i can ******** myself.

so again, the user picks the start and ending color of the gradient, how would i make a gradient going from those two colors? thanks