richTextBox.DrawToBitmap Does Not Draw Containing Text?

后端 未结 6 1410
盖世英雄少女心
盖世英雄少女心 2021-01-15 14:34

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         


        
6条回答
  •  暖寄归人
    2021-01-15 15:23

    From the MSDN Library article for RichTextBox.DrawToBitmap():

    This method is not relevant for this class.

    A crummy way to say that the native Windows richedit control doesn't support WM_PRINT. Taking a screen shot is an option, Novikov gave you a link to my answer.

提交回复
热议问题