Results 1 to 4 of 4

Thread: Command Button Problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Angry

    For some reason I am unable to change the appearance of my command buttons either throught the properties window or in code.

    I can change the textboxes back color for instance but am unable to change the back color of any command button or assign a graphic to it's picture property. I only can display the plain gray button.

    I am using VB 6.0 with SP3.

    Any ideas how to correct this?

    Thanks.

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Posts
    125
    set the style property to graphical

  3. #3
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305
    First, you can't change the backcolor of the command button. Sorry. Second, with the picture, go to properties, set it to graphical, and change the picture option to your picture. If you want to go really pretty with this button, use a picture box. It has a click event, too, so it can look how you want it to. Also, you can switch between pictures on it using the mousedown event, so it will display a normal button picture, then on mousedown, it programmatically switches to a down button picture (if you draw it and want to).

    bob

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Cool Command Button

    Thanks Bob. The style property has to be set to graphical. I did not see this before.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width