Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / May 2004

Tip: Looking for answers? Try searching our database.

DrawString Output Characters Move Around As You Type

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PDoug - 27 May 2004 15:21 GMT
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.
Bob Powell [MVP] - 27 May 2004 15:46 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.