Results 1 to 6 of 6

Thread: [RESOLVED] [02/03] RichTextBox opacity

  1. #1

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Resolved [RESOLVED] [02/03] RichTextBox opacity

    Hello!

    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.

  2. #2

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    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?

  3. #3

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    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.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Re: [02/03] RichTextBox opacity

    But do you think it can be done using API?
    Thank you.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] RichTextBox opacity

    I very much doubt it, other than maybe on Vista.
    Last edited by jmcilhinney; Aug 27th, 2007 at 05:04 AM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width