I have a RichTextBox in my application which starts out disabled (gray) and becomes enabled once a file is opened (white). This has been working fine.
But when I set the ShowSelectionMargin property to True (which will be a very helpful change for this app), it turns the background to gray permanently. I think this is probably a bug in DotNet (I believe this is running under .NET 4.5 at the moment), but might there be a workaround?
(May be related to Why does my control extending RichTextBox defaults to gray background? .)
Oh, I just figured out a workaround, but I'll go ahead and post this (and answer it), in case others come looking (or have better solutions).