Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Re: Print spaces with Underline

Reply
 
Old 02-26-2008   #1 (permalink)
Michael C


 
 

Re: Print spaces with Underline

"Jon Jacobs" <JonJacobs@xxxxxx> wrote in message
news:1F395B13-B3B6-4074-A6C2-DFAE83C74B74@xxxxxx
Quote:

> _Grp.DrawString(S, F, Brushes.Black, X, Y)
>
> F is a font that included the underline style.
> S is a string right-padded with spaces to give it a desired width.
> Unfortunately, the undeline only appears witht the left part of the
> string.
> All the trailing spaces are ignored.
> I get around the problem by changing the final space to a period or
> underscore, but this is very ugly.
>
> Is there a way to force the underline to appear on the trailing spaces?
Try doing S.Replace(" ", Convert.ToChar(160))
Quote:

>
> Thanks,
>


My System SpecsSystem Spec
Old 02-27-2008   #2 (permalink)
Jon Jacobs


 
 

Re: Print spaces with Underline

"Michael C" wrote:
Quote:

> Try doing S.Replace(" ", Convert.ToChar(160))
Thank you, Michael. That was one of the first things I tried, but it did not
work.

Jon
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How do I get underline under menu letter to always be present? Vista General
Underline menu? Vista General
Keyboard Shortcuts - Underline Tutorials
Always show menu underline (keyboard accelerators) Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46