Results 1 to 3 of 3

Thread: [RESOLVED] Form Opacity

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2009
    Posts
    130

    Resolved [RESOLVED] Form Opacity

    It should be simple to do but this does not work.

    Code:
     Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    
            Me.Opacity = CDbl(50)
    
    
        End Sub
    The only way I can make the form semi-transparent is to set the form's property explicitly.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Sep 2009
    Posts
    130

    Re: Form Opacity

    As you were. I found the answer in WROX Programmers Reference.

    Value needs to be floating point between 0 and 1.

    Me.Opacity = 0.5

  3. #3
    Fanatic Member BlindSniper's Avatar
    Join Date
    Jan 2011
    Location
    South Africa
    Posts
    865

    Re: Form Opacity

    Be sure to mark the thread resolved.
    Tread Tools-> Mark thread resolved

    Useful CodeBank Entries of mine
    Expand Function
    Code Compiler
    Sudoku Solver
    HotKeyHandler Class

    Read this to get Effective help on VBForums
    Hitchhiker's Guide to Getting Help at VBF

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