Quote:
Originally Posted by Falbala
Hy !
Sorry for my really bad english, I'll do my best. Well i would like to have à gradien on a commandbutton with à label on it. Problem I can't put gradien on a objet witch dont have the 'line' methode ! So i draw my own button with picturebox and put label on it . Good it works, but now when i want to apply gradien on it, the label diseapear !!!
I tried lots of possibilities with all the property of this 2 controls but without succes. So if someone has an idea, it would be great. Thanks a lot... 
Labels are lightweight controls without their own device context, so that's why you are having problems. Just use picboxes. Why are you trying to use labels? If you want to display text in a picturebox you can use the Print method of Picboxs. It won't come up in the Intellisense dropdown but it's just:
Picture1.Print "Output text"
Remember to set AutoRedraw to True
The other option is bitblting, or use the line method to "draw" the letters...