Results 1 to 4 of 4

Thread: [RESOLVED] Opacity Problem

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2009
    Posts
    130

    Resolved [RESOLVED] Opacity Problem

    Hopefully this is a simple one.

    I created a form with a Button on it. The code behind the button is

    Code:
    Me.Opacity = 50
    It does not work.

    If I set it during design from the proporties window it displays correctly but I can't seem to control it from code.

    Am I doing something wrong?

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Opacity Problem

    That's because opacity values ranges from 0 to 1
    To have 50% opacity, you set it to 0.5 instead of 50.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  3. #3
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Opacity Problem

    Don't forget, the first port of call should be the helpfile.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 2009
    Posts
    130

    Re: [RESOLVED] Opacity Problem

    Thanks Stanav.

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