[RESOLVED] [02/03] RichTextBox opacity
Hello!:wave:
I've done a little Notepad clone.
It works great. Now, what I want to do is to set different opacity to my text area (is a richtextbox object).
I want it to be just like this picture, setting the background area but not any of the text typed.
http://ez.no/var/ezno/storage/images..._ini_files.png
Thank you.
Re: [02/03] RichTextBox opacity
I've been trying to use the transparencyKey but all RTbox acts like it does not exist.
Do I have to use API?
Re: [02/03] RichTextBox opacity
It is really important to me to know if there is any chance to do what I would like to do.
If it is not possible, please tell me.
Thank you.
Re: [02/03] RichTextBox opacity
It may be possible in .NET 3.0+ but certainly not before without some extreme jiggery-pokery. It's simply not supported. Controls can't have individual opacity. Only the form has an Opacity property and it's for the entire form, child controls and all.
Re: [02/03] RichTextBox opacity
But do you think it can be done using API?
Thank you.
Re: [02/03] RichTextBox opacity
I very much doubt it, other than maybe on Vista.