Results 1 to 6 of 6

Thread: Set diferent opacity to a color.

  1. #1

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

    Set diferent opacity to a color.

    I've done a little Notepad clone with VB2003

    It works great. Now, what I want to do is to set different opacity to my text area (is a richtextbox object), which should be seted on runtime by a trackbar.

    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

    Can I do this?

    I thought that I could set the richtextbox background color to a "almost" white (RGB:254,254,254), to be more simple to detect the area that I want to set a different opacity.

    Thank you.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Set diferent opacity to a color.



    Has someone helped you? Then you can Rate their helpful post.

  3. #3

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

    Re: Set diferent opacity to a color.

    Very appreciated but this is not what I'm trying to do.

    VB2003 permit doing this without using API but using the form property "TransparencyKey".

    I'm talking about setting opacity and not transparency. I would like to set opacity, for instance, to 60%. Transparency only permits opacity equal to 0% or 100%.

    Thank you.

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Set diferent opacity to a color.

    Sorry, I missed the part about .Net. I moved to that forum, since as i understand it's a .Net specific question.


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

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

    Re: Set diferent opacity to a color.

    I've also posted this at the .Net forum and I thought that it would be better to post this at the API forum, because .net2003 does not have any capability to do what I want.
    Sorry for any misunderstood.

    Thank you.

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Set diferent opacity to a color.

    OK, moved it back. Sorry for the mixup...


    Has someone helped you? Then you can Rate their helpful post.

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