Results 1 to 40 of 4199

Thread: CommonControls (Replacement of the MS common controls)

Threaded View

  1. #10

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by I-Like-Toast View Post
    Is it possible to set the RTB background to transparent?

    The following seems to work for the original Rich Text Box, but for some reason not the new one:

    SetWindowLong richtextbox1.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
    It actually works. But, as there is a underlying UserControl under the RichTextBox it will always show the background of the UserControl. Thus it is not visible transparent. But again, the actual RichTextBox is indeed transparent with this.

    I could make a 'Transparent' property for the RichTextBox which would do two things.
    1. Set the WS_EX_TRANSPARENT extended style to the RichtTextBox control.
    2. Make the background of the UserControl a replica of the underlying background to simulate transparency.
    Last edited by Krool; Aug 14th, 2014 at 11:28 AM.

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