-
January 28th, 2013, 04:51 PM
#1
[VB2010] - the big question: can i put the usercontrol realy transparent?
i have code for put the usercontrol transparent. but stills be a false transparent. because the control is 'hided'(without an image) and you see what is on back, but you can't click on back controls
can anyone advice me, please?
(i can share the code... but isn't a real transparency)
-
January 28th, 2013, 11:08 PM
#2
Re: [VB2010] - the big question: can i put the usercontrol realy transparent?
You have to show us a code sample, which is not hard. Copy/Paste into the reply and hit the # (code) tags. Or else add CODE \tags
-
January 29th, 2013, 01:49 AM
#3
Re: [VB2010] - the big question: can i put the usercontrol realy transparent?
Transparent means that you can see through it, not that you can click through it. Sounds like it may be working the way it should. It the control has nothing to display then you could move it to the background and bring the control you want to be clickable to the foreground.
If this is not what you are talking about then please explain in a bit more detail.
Always use [code][/code] tags when posting code.
-
January 29th, 2013, 05:44 AM
#4
Re: [VB2010] - the big question: can i put the usercontrol realy transparent?
Last edited by Cambalinho; January 29th, 2013 at 05:49 AM.
-
January 29th, 2013, 10:26 AM
#5
Re: [VB2010] - the big question: can i put the usercontrol realy transparent?
As I said Transparent means see through. You other assumption about being able to click controls that are behind it is just incorrect and has nothing to do with transparency.
You can shift the zorder of the controls to bring the one you want to use to the foreground or you can set the control in question to not be visible and then you can click on the control behind it but so long as your control is in front and has a visible setting of true then you can not click on anything that is behind it unless of course the control behind it is larger and you click on an area that is not covered up by the front control
Always use [code][/code] tags when posting code.
-
January 29th, 2013, 10:42 AM
#6
Re: [VB2010] - the big question: can i put the usercontrol realy transparent?
Originally Posted by DataMiser
As I said Transparent means see through. You other assumption about being able to click controls that are behind it is just incorrect and has nothing to do with transparency.
You can shift the zorder of the controls to bring the one you want to use to the foreground or you can set the control in question to not be visible and then you can click on the control behind it but so long as your control is in front and has a visible setting of true then you can not click on anything that is behind it unless of course the control behind it is larger and you click on an area that is not covered up by the front control
so you mean that VB2010 Transparency is only for see through(thanks for the word... i'm portuguese) and not use the controls.
"You other assumption about being able to click controls that are behind it is just incorrect and has nothing to do with transparency." then tell me something for work. if isn't transparency, then what is?(in VB6 is more easy lol)
-
January 29th, 2013, 10:53 AM
#7
Re: [VB2010] - the big question: can i put the usercontrol realy transparent?
I did tell you already. You can change the order so that the control you want to click is the one in front or you can set the visible property to false on the control in front so it will not be blocking the one behind. It is the same in VB6 so not sure what you mean about it being easier in VB6.
you can always only click on the control that is in the front in either language.
Always use [code][/code] tags when posting code.
-
February 3rd, 2013, 04:35 PM
#8
Re: [VB2010] - the big question: can i put the usercontrol realy transparent?
Originally Posted by DataMiser
As I said Transparent means see through. You other assumption about being able to click controls that are behind it is just incorrect and has nothing to do with transparency.
Actually this is wrong. Take this code for example:
Code:
Me.TransparencyKey = Color.Fuchsia
Me.BackColor = Color.Fuchsia
Inside the main Form class, assign this code to a button click or something. Then while you can see through the form as the control's container, you can definitely click things "behind" this "transparent" object.
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
|