Making a Richtextbox Transparent

  • Thread starter Thread starter PB Kishore
  • Start date Start date
P

PB Kishore

Dear All,
Is there a way to make a RichTextBox Transparent, so
that I can display a picture on the PictureBox behind,
like in a chat application ? I dont want Third party
Richtextboxes. Is it possible in .NET RichTextBox ?
Any suggestions are welcomed.

Regards,
PB Kishore
 
--------------------
Content-Class: urn:content-classes:message
From: "PB Kishore" <[email protected]>
Sender: "PB Kishore" <[email protected]>
Subject: Making a Richtextbox Transparent
Date: Tue, 2 Sep 2003 21:25:05 -0700
Lines: 10
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNx01nvJUhCEpxzQKyoZMrdAxMdOw==
Newsgroups: microsoft.public.dotnet.framework.windowsforms
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.windowsforms:51533
NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms

Dear All,
Is there a way to make a RichTextBox Transparent, so
that I can display a picture on the PictureBox behind,
like in a chat application ? I dont want Third party
Richtextboxes. Is it possible in .NET RichTextBox ?
Any suggestions are welcomed.

Regards,
PB Kishore

Hi,
The .NET RichTextBox control does not support Transparent as a
background color. You can use the BackColor property to set the color to
something such that the control will blend into the color of your form,
thus appearing transparent. For more information about this property and
the RichTextBox control class please see the links below.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwindowsformstextboxbaseclassbackcolortopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwindowsformsrichtextboxmemberstopic.asp
Thanks,
Shruti
--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 
Back
Top