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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top