Results 1 to 3 of 3

Thread: Transparent frame on a VB Form

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    10

    Cool

    Hi,

    I'm trying to create a transparent frame on a VB Form.

    I have a form which contains a PICTURE control which serves as a background
    ( I need to be able to drag that background and to move it according to location
    data I receive from a GPS). On top of the PICTURE I try to group several CHECK
    BOXES in a FRAME control.

    What I need is to make the grouping FRAME transparent so the form will have the
    PICTURE as it's background and the CHECK BOXES floating above that background.

    How do I make the FRAME transparent ?

    Erez

    Erez Boym
    Email : [email protected]

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    The frame control doesn't support transparency but you could cut the regions of it, but i'm sure your checkboxes won't be displayed transparent, I think you should either draw directly on the form or use labels in combination with the checkboxes. If you're just using the frame as a container for your checkboxes, I think you should place them on the form instead and have a shape control grouping them. I would prefer drawing everything on the form
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Addicted Member
    Join Date
    Apr 2000
    Location
    Sheffield, England.
    Posts
    136
    You could build your own 'fake' frame. Just add two box shapes to the form (of equal size).

    Make the first one's BorderWidth = 2, and it's colour to Dark Grey (InactiveTitleBar). Make the second one BorderWidth = 1, and it's colour to white. Overlay the white box on the dark grey one. If you can't see the white part, click 'bring to front'. Then just add a caption at the top.


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