Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Posts
    28

    Unanswered: Command button image

    I create an image (.ico format) and fill in my command button. When I set .Enabled = False, my button image look like foggy. But MS Access shows disabled built-in button image in "Sunken" style.

    Have any method to create button image as same as built-in image ?

    Regards

  2. #2
    Join Date
    Nov 2003
    Posts
    1,487
    You will have to get a little artisitic with MS Paint. Copy the image you are using and gray out the main colors so that it would look like a image that is disabled on a button. When you disable your button (via code) load your disable image into the 'Picture' property of the Command button:

    'Disabled
    Me.Command1.Picuture = "MyDisabledPic.bmp"
    Me.Command1.Enabled = False


    'Enabled
    Me.Command1.Picuture = "MyEnabledPic.bmp"
    Me.Command1.Enabled = True


    -F-

  3. #3
    Join Date
    Nov 2003
    Posts
    28
    Hi, Thank you for your idea. Anyway, that method can not use. Even I grey out and set it to button But after button is disabled, System automatic reverses image again. Result is still incorrect.

Posting Permissions

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