|
-
Aug 25th, 2007, 08:58 PM
#1
Thread Starter
Hyperactive Member
Transparent Frames
Is it possible to make frames transparent, I have over 20 on one of my forms, and I need them to be transparent, is this possible?
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Aug 25th, 2007, 11:58 PM
#2
-
Aug 26th, 2007, 11:22 AM
#3
Thread Starter
Hyperactive Member
Re: Transparent Frames
Sorry, that is form, I need frames...
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Aug 26th, 2007, 02:09 PM
#4
Frenzied Member
Re: Transparent Frames
This will make the frame invisible (including all components):
Code:
Private Sub Form_Load()
Frame1.Visible = False
End Sub
Whereas this will make the frame invisible but leave the components there:
Code:
Private Sub Form_Load()
Frame1.BorderStyle = 0
Frame1.Caption = ""
End Sub
-
Aug 26th, 2007, 02:10 PM
#5
Thread Starter
Hyperactive Member
Re: Transparent Frames
Well, I want the frame to be visible, just the background inside the border to be invisible...
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Aug 26th, 2007, 02:14 PM
#6
Frenzied Member
Re: Transparent Frames
Hmmm.... OK i'm gonna have to pass on that one.... Lol.
-
Aug 26th, 2007, 02:15 PM
#7
Thread Starter
Hyperactive Member
Re: Transparent Frames
Is it possible, but hard? Or completely impossible?
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Aug 26th, 2007, 02:19 PM
#8
Frenzied Member
Re: Transparent Frames
I would say possible but hard. I'm only a beginner so you would really need to wait for Martin or Si or some other advanced member to respond. Sorry.
-
Aug 26th, 2007, 02:23 PM
#9
Thread Starter
Hyperactive Member
Re: Transparent Frames
Ok, thank you for your time though...
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Aug 26th, 2007, 03:09 PM
#10
Re: Transparent Frames
If the background to the frame(s) is static, try using the transparent frame UserControl in my signature (TransFrame.zip) This blits a pic of the background onto the control.
If the background is mobile, ie video, a pic that stretches with the form, scrolling text/pictures etc, the only successful way I've found is to use overlays. Complex but possible. (NET/VB2005 has native support for transparent controls, but is flaky when it comes to displaying them over video)
-
Aug 26th, 2007, 03:13 PM
#11
Thread Starter
Hyperactive Member
Re: Transparent Frames
The frames background is static... (I am trying it now...)
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Aug 26th, 2007, 03:16 PM
#12
Thread Starter
Hyperactive Member
Re: Transparent Frames
The problem is that the border doenst work well... Is there a way I can make the border work with the background?
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Aug 26th, 2007, 03:22 PM
#13
Re: Transparent Frames
You cannot make frame control transparent, period.
All you can do is simulate transparency - to find out how it could be done lookup the link in my signature.
-
Aug 26th, 2007, 03:41 PM
#14
Re: Transparent Frames
 Originally Posted by Bobalandi
The problem is that the border doenst work well... Is there a way I can make the border work with the background?
Nope. As RhinoBull has said, all you can do is mimic transparency.
-
Aug 26th, 2007, 03:44 PM
#15
Thread Starter
Hyperactive Member
Re: Transparent Frames
Well, yes, like what you did with the background, is there a way that the border text can mimic the background?
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Aug 26th, 2007, 04:01 PM
#16
Re: Transparent Frames
Have you looked at the sample I mentioned in my previous post?
-
Aug 26th, 2007, 04:02 PM
#17
Re: Transparent Frames
 Originally Posted by Bobalandi
Well, yes, like what you did with the background, is there a way that the border text can mimic the background?
Not as far as I know - the caption's background colour is the same as one of the borders.
EDIT: Have you tried Rhino's sample code ?
Last edited by schoolbusdriver; Aug 26th, 2007 at 04:06 PM.
-
Aug 26th, 2007, 04:08 PM
#18
Thread Starter
Hyperactive Member
Re: Transparent Frames
Yes, but I didnt understand most of it... *embarrased...*
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
-
Aug 26th, 2007, 04:13 PM
#19
Re: Transparent Frames
I can't help you with that - you have to learn to be able to read someone else's code - that's nature of business.
-
Aug 26th, 2007, 04:14 PM
#20
Thread Starter
Hyperactive Member
Re: Transparent Frames
Ok... Thanks AGAIN for all your help...
Haikus are easy.
But sometimes they don't make sense.
Refrigerator.
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
|