QUESTION: Transparent UserControl on TabControl |
Post Reply |
Author | ||
Jean
Senior Member Joined: 11 December 2006 Status: Offline Points: 110 |
Post Options
Thanks(0)
Posted: 27 October 2008 at 5:08am |
|
Transparency doesn't work with transparent usercontrols(ocx)?
All controls and the usercontrol are set to transparent. The usercontrol itself is transparent, but not the controls on it, as you can see on the second screenshot. Is there a way to solve this problem? |
||
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2 Language: VB6 / C# 4.0 |
||
JantjeKeizer
Groupie Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
|
You can try to use a tabworkspace as background for the usercontrol, adding a single line in the resize event like:
tabworkspace.move 0 ,0 , usercontrol.scalewidth,usercontrol.scaleheight i think that will work |
||
Jean
Senior Member Joined: 11 December 2006 Status: Offline Points: 110 |
Post Options
Thanks(0)
|
|
Thank you.
Your solution only works correct, if the UserControl fills the whole TabPage. But if the UserControl is only a part of the TabPage, then you will notice a problem with the gradient of the color. |
||
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2 Language: VB6 / C# 4.0 |
||
JantjeKeizer
Groupie Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
|
Hmm, yes you are right.
If you are willing to do some ugly stuff here's a horrific 'workaround' In your UC place this code
Then in your calling form something like
But only if you really must. Any other workaround or real solution will be better |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |