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
Printable View
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
You can set the WS_EX_TRANSPARENT style...
Using EventVB.dll this can be done thus:
VB Code:
Option Explicit Dim WithEvents vbLink As EventVB.APIFunctions Dim wndFra As EventVB.ApiWindow Private Sub Form_Load() Set vbLink = New APIFunctions Set wndFra = New ApiWindow With wndFra .hWnd = Me.Frame1.hWnd .SetWindowStyle WS_EX_TRANSPARENT, True .DeviceContext.BackStyle = TRANSPARENT End With End Sub
Hope this helps,
Duncan
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