If I create a string that dynamically gets updated with characters I type on the keyboard, the System.Drawing.Graphics.DrawString method shows the characters in the updated text moving back and forth - rather than the original characters maintaining their position, and the new characters being appended to the end of the string. (The Drawsting method apparently dynamically repositions all the text in the output string, not simply maintain their positions and append the new text.) Does anyone know a solution to this problem? Thanks.
When you display your string, ensure that you use
StringFormat.GenericTypographic and a reasonably good TextRenderingHint in
the Graphics object. That will reduce the effect.
TextRenderingHint.Antialias should eliminate it entirely but it's less
readable for small fonts.

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Image transition effects, automatic persistent configuration and
design time mouse operations all in April's issue of Well Formed
http://www.bobpowell.net/wellformed.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://royo.is-a-geek.com/siteFeeder/GetFeed.aspx?FeedId=41
> If I create a string that dynamically gets updated with characters I type on the keyboard, the System.Drawing.Graphics.DrawString method shows the
characters in the updated text moving back and forth - rather than the
original characters maintaining their position, and the new characters being
appended to the end of the string. (The Drawsting method apparently
dynamically repositions all the text in the output string, not simply
maintain their positions and append the new text.) Does anyone know a
solution to this problem? Thanks.
PDoug - 27 May 2004 16:06 GMT