System.Windows.Forms.Form and System.Windows.Forms.RichTextBox

  • Thread starter Thread starter Piotr
  • Start date Start date
P

Piotr

1. When i refresh control, position of scrollbars is deleted.

I can not change BackgroundImage from System.Windows.Forms.RichTextBox
before text of control is painted and after.
I tried use events Paint,BackgroundImagedChanged and timer event for
graphics painting.

2. Can i make transparent background System.Windows.Forms.RichTextBox?
 
I tried too do it:

System.Drawing.Bitmap bitmapa=new
System.Drawing.Bitmap(control.Width,control.Height);

bitmap.MakeTransparent(control.BackColor);

control.BackgroundImage=bitmap;



not run
 
2. Can i make transparent background System.Windows.Forms.RichTextBox?

No you can't. I remember having seen 2 years ago or do on the web
experiments at trying to make a RichTextBox transparent using Win32 APIs
but it resulted pretty bad and / or unstable results.
 
Should create self control.
Security for .Net is too many thinking and making complications.
 
Back
Top