Results 1 to 3 of 3

Thread: I need a trasparent bkcolor frame?!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    Italy
    Posts
    29

    I need a trasparent bkcolor frame?!

    Hello to all
    I have a form with a backgroud picture. Then i want to make visible a frameX I would like to disply only the border of the frame So backcoloro of the FrameX must be trasparet.
    Somebody knows how to do this???

    Vince

  2. #2
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    You can set the WS_EX_TRANSPARENT style...

    Using EventVB.dll this can be done thus:

    VB Code:
    1. Option Explicit
    2.  
    3. Dim WithEvents vbLink As EventVB.APIFunctions
    4. Dim wndFra As EventVB.ApiWindow
    5.  
    6. Private Sub Form_Load()
    7.  
    8. Set vbLink = New APIFunctions
    9.  
    10. Set wndFra = New ApiWindow
    11.  
    12. With wndFra
    13.     .hWnd = Me.Frame1.hWnd
    14.     .SetWindowStyle WS_EX_TRANSPARENT, True
    15.     .DeviceContext.BackStyle = TRANSPARENT
    16. End With
    17.  
    18. End Sub

    Hope this helps,
    Duncan
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  3. #3
    Hyperactive Member Dinz's Avatar
    Join Date
    Jan 2002
    Posts
    359
    MerrionComputin urs is really a kool site...I bookmarked it and I also found it very informative......now onwards I will be a regular visitor of this site...once again thanks for providing such a wonderful site
    !!!NobodyisPerfect......IamNOBODY!!!
    How's your wife and my kids?.....

    Never argue with an idiot. They drag you down to their level then beat you with experience!

    Child says : Mummy mummy, can i play with grandpa ?
    Mum says : NO, you have already dug him up twice.

    Galahtec The VB Forum

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