Transparent ListBoxes
-
I'm having quite a problem figuring this out. In the microsoft SDK i found some functions to make controls transparent:
SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent;
and they said something about it had to be placed in the constructor????? Kinda lost. Can i apply this to the standart listboxes in the .Net framework, or do i have to create my own control which inherits the functions of a listbox? thanks in advance! -
I'm having quite a problem figuring this out. In the microsoft SDK i found some functions to make controls transparent:
SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent;
and they said something about it had to be placed in the constructor????? Kinda lost. Can i apply this to the standart listboxes in the .Net framework, or do i have to create my own control which inherits the functions of a listbox? thanks in advance! -
I'm having quite a problem figuring this out. In the microsoft SDK i found some functions to make controls transparent:
SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent;
and they said something about it had to be placed in the constructor????? Kinda lost. Can i apply this to the standart listboxes in the .Net framework, or do i have to create my own control which inherits the functions of a listbox? thanks in advance!ListBox doesn't support transparency on it's own. If you want a transparent ListBox, then your going to have to create your own, inheriting from the current ListBox control and adding the code you posted. Search the articles for "custom listbox" and you'll come up with some examples. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
ListBox doesn't support transparency on it's own. If you want a transparent ListBox, then your going to have to create your own, inheriting from the current ListBox control and adding the code you posted. Search the articles for "custom listbox" and you'll come up with some examples. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Okay.. I'll do that! Thanks a lot for the help Regards! **EDIT** Back again. Now i have created a inherited custom control with listbox attributes. But when i set the color to transparen they just turn white. The thing is that you have to be able to see the picture behind the listboxes. Hope some of you have a solution to this!