The (Container) User Control: Child supports transparency *Resolved*
Ok, now that I got my crappy container, I have created my gradient. Now the crappy crap crap problem here is that I want my full of crap UC to be compatible with .NET's crappy alpha blending. crappy crapity crap. Ca-c-crap crap crap crap. Ca-crap c-c-can som-m-m-e-crap s-someone help crap crap crap??
Last edited by Danny J; Nov 1st, 2003 at 08:03 PM.
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
you want teh control itself to be semi transparent?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
Now my whole point here is to let the child control alphablend with my User Control's gradient. What do I end up with? I end up alphablending with my User Control's BackColor. I want it to alphablend with my gradient. Is there any way to do this?
Last edited by Danny J; Oct 18th, 2003 at 05:06 PM.
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
hehe so basically you're trying to make the child controls be semi transparent umm as far as I know, no, .NET doesnt support this. The only thing it lets you do is to have the child controls have the same background color as the parent control.
a lot of people have asked about this, there may be a solution, but not that I know of. search the vb.net forums though, you may find somethign useful
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
Originally posted by Danny J Can you tell me Hdc in VB .NET???
Hdc? you mean the handle?
umm if that's what you want, I usually use
someControl.Handle.ToInt32
dunno if that helps
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
Danny, without pretending you have no idea what you're doing, where are you calling your gradiate function from? I'm assuming your making a call to it from your usercontrol OnPaint event correct? (cause otherwise it woudn't work).
Even further along than that..... I can honestly say that is no shocking surprise its alphablending with the backcolor since your assigining the color to the label backcolor. Label.Backcolor=...
First of all, the smaple in code project, I don't understand cpp so thats probably one of the reasons I am posting my problem in VB .NET. I made a PSP image like you told me to, so here it is.
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
take a look at the SetStyle() function, maybe that could help you a little. But still I dont think you can easily fix this
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
just type setstyle and press spess, intellisense will do the rest to help you
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
look, umm, why dont you draw the text on the control instead of using a lable? just use e.graphics.drawString in teh usercontrol's paint event.
again,I think there is no straight-forward way to get this done. So you can find a way around it. I think the easiest way is to draw the text.
is that the only thing you have in your user control? a lable control? that's all? should work if so
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
I am creating this control for one main reason, so I can get the nice bar you see that have a colapsing feature. WinXP bar uses alphablending when the user clicks on the title. You know, Microsoft has made a clear-enough solutions for themselves, so why not cut us some slack??
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
Originally posted by Danny J I am creating this control for one main reason, so I can get the nice bar you see that have a colapsing feature. WinXP bar uses alphablending when the user clicks on the title. You know, Microsoft has made a clear-enough solutions for themselves, so why not cut us some slack??
did you try DrawString? should work perfectly infact I dont see why you want to use a label control
are you using this as the title bar of a form?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!
Look, tell your boss that instead of paying you $25 an hour to write the code for a control such as this, which theoretically would take a good week of debugging after the writing, tell him to spend $199 on a commercial control.
I'm not clear on what it is exactly that you are trying to accomplish. Did you ever try the DrawString solution that MrPolite suggested? If so how did it work out? If not why?
I have tried the DotNetMagic and although it appears to be something great, it kept giving me errors and an I think someone else here mentioned that it gave them errors as well. However, if you can get it to work then it might be your best and quickest solution. Another idea is to talk to the guy that developed it. I understand he is an excellent programmer.
On another note, don't tell someone (especially your boss) that you can do something when you can't. As for as the $25 per hour comment, .....well......I know a guy who delivers pizza for a living and is probably better programmer than most folks here. Just because you make more than $25 per hour doesn't make you a good programmer or less of an [insulting comment here]. This thread proves that.
Originally posted by Danny J After checking the West hemisphere of the globe, at the very end ended up at an abandoned website.
'Just set the BackColor to a translucent color, that will be completly invisible'
That resulted in Color.FromArgb(0, 0, 0, 0)
Thanks so much for all of your help!!
uuuh how does that work??? that lets you see through the label and see the gradient on your usercontrol?!
but thats same as setting the backcolor to color.transparent at design time
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB ) VB.NET to C# conversion tips!!