03-03-2004, 08:57 AM
In VB 6.0, I create a button called cmdoption. How can I put the picture in the left of the cmdoption and text in the right of the cmdoption?
03-03-2004, 10:21 AM
You have to set the Style of the button to Graphical, set the Picture property to the picture you want, and the Caption to the text you want. But, AFAIK, the text will appear below the picture and not on the right. There is no easy way to get the text on the right. I think it's only possible using owner-drawn controls (http://www.thescarms.com/vbasic/OwnerDrawn.asp), but that is quite an advanced topic.
What you could try is using a picture file that is transparent on it's right side, and put many spaces in the beginning of the caption, but that's quite an ugly hack.