Results 1 to 7 of 7

Thread: Transparent Form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Pilipinas
    Posts
    441

    Transparent Form

    I'm just wondering, how can I make the Form Transparent in VB.NET?

  2. #2
    Member
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    46
    look in your form properties, there is an "opacity" setting

    Hope this helps

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I think you can only set if from 0 to 1 though, so try .5 for half way transparency.

  4. #4
    Member
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    46
    Originally posted by hellswraith
    I think you can only set if from 0 to 1 though, so try .5 for half way transparency.
    It's a percentage... you can have from 0% (invisible) to 100% (fully opaque)

  5. #5
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Only during design time does it deal in percentages. When you try to set it in code, you will need to set it from 0 to 1.

    Right way:
    me.Opacity = .5

    Wrong way:
    me.Opacity = 50

  6. #6
    Member
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    46
    ahh i see... kinda silly to make it that way imo :\

  7. #7
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I think it wasn't good design either. Should have just been percent the whole way.

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