Web Analytics Made Easy -
StatCounter Button - CodingForum

Announcement

Collapse
No announcement yet.

Button

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Button

    Dear Sir,

    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?


    Thanks


    Xiang

  • #2
    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, 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.

    shmoove

    Comment

    Working...
    X