richTextBox.DrawToBitmap Does Not Draw Containing Text?
问题 If I have a richTextBox and run DrawToBitmap on it, it doesn't draw any of the text inside of the richTextBox. Bitmap b = new Bitmap(rtb.Width, rtb.Height); inputControl.DrawToBitmap(b, new Rectangle(0, 0, b.Width, b.Height)); Is there any way to fix this? 回答1: This thread came up second in Google. Seems to have exactly what you want. Because I imagine you're using this inside your function from this question Accepting Form Elements As Method Arguments?, it's probably best to do something