|
-
Nov 21st, 2000, 12:13 PM
#1
Thread Starter
New Member
I have a Image control that I want to use as a border where the inside is transparent. I want to put the media player underneath the picture.
The problem is that the Image control seems to be the only thing that will support transparency but it can never be sent to front. Everything works fine but the media player will always sit on top of the image control.
What can i do?
code_baron
-
Nov 21st, 2000, 04:18 PM
#2
Addicted Member
Have u tried sending Media Player to back?
-
Nov 21st, 2000, 04:29 PM
#3
The Image control is in the 2nd layer, therefor it will always be behind the non-graphical controls such as buttons, textboxes, pictureboxes etc.
-
Nov 21st, 2000, 05:58 PM
#4
Hyperactive Member
I ran into this problem once. What I did is when I wanted the image to be on top, I set the visible to false for any control completely behind it, and resized all the partially blocked controls to be narrow/short enough to not bleed into the image. It was kind of a hassle, but ended up working nicely.
As I recall, I put the resized width/height in the tag, or "0" if it was completely blocked. Then I just used a For Each ctl In Me.Controls to loop through. If I found a "0" in the tag, set its .Visible to Not .Visible (toggling it), or I swapped the current width/height with the tag width/height.
I didn't need to change any heights, so I just used width, which saved me from having to parse a comma delimited tag, but using the Split function would make it pretty easy.
[Edited by jmcswain on 11-21-2000 at 06:01 PM]
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
|