|
-
Apr 23rd, 2002, 05:24 AM
#1
Thread Starter
Junior Member
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
-
Apr 23rd, 2002, 05:37 AM
#2
Frenzied Member
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
-
Apr 23rd, 2002, 06:03 AM
#3
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|