How can I make a label or a textbox transparent?
-
Hello! I searched in the google for the question but I haven't found a sufficient solution yet. So if know how to make a label or a textbox transparent, would you please show me how to do it? Regards. J.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
-
Hello! I searched in the google for the question but I haven't found a sufficient solution yet. So if know how to make a label or a textbox transparent, would you please show me how to do it? Regards. J.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
It all depends on what you mean by transparency. In WinForms 'transparent' usually means your control is painted with the background color. This is probably not what you want. Real Transparency is achieved through a technique called alpha-blending, and is available in GDI+, which is currently not implemented in Windows CE. SO you'll have to wait for Windows Phone 7 and Silverlight on the phone to get some operating system support for this (and your mileage may vary). Note that you can still achieve transparency on Windows CE by painting the control yourself, and implementing your own Alpha-Blending routine. I've stumbled on a little library that may or may not be helpful:http://www.topshareware.com/WMGL-(Windows-Mobile-Graphics-Library)-download-72671.htm[^]