Re: Drawing lines other than with "-"

Tech-Archive recommends: Fix windows errors by optimizing your registry



It used to be that character sets had all sorts of cool things in. That's
not much of an option these days because almost everything is proportional.
Aside from John's suggestion of underscores for horizontal lines and pipes
'|' for vertical lines I have nothing to suggest.

Maybe you can use some wingdings??

Sorry.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Zach" <00@xxxxx> wrote in message
news:d65c8$425fa2a6$3e15a08d$13710@xxxxxxxxxxxxx
>I don't want to get into HTML.
>
> Re alternatives for:
>
> new string ("-",73)
>
> Can one use unicode (&#151??) If so, how
> should that be done, please give example code.
>
> Many thanks.
>
> Zach.
>
>
> "Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:eBLv0SZQFHA.248@xxxxxxxxxxxxxxxxxxxxxxx
>> Had you thought about outputting HTML? You can only use the characters in
> a
>> text file but an invoice rendered in HTML can be as rich as you like.
>>
>> --
>> Bob Powell [MVP]
>> Visual C#, System.Drawing
>>
>> Find great Windows Forms articles in Windows Forms Tips and Tricks
>> http://www.bobpowell.net/tipstricks.htm
>>
>> Answer those GDI+ questions with the GDI+ FAQ
>> http://www.bobpowell.net/faqmain.htm
>>
>> All new articles provide code in C# and VB.NET.
>> Subscribe to the RSS feeds provided and never miss a new article.
>>
>>
>>
>>
>>
>> "Zach" <00@xxxxx> wrote in message
>> news:9e9fc$425f72ba$3e1584fc$11076@xxxxxxxxxxxxx
>> > In an invoicing program I draw lines in a text file
>> > using:
>> >
>> > new string ("-",73)
>> > new string ("=",73)
>> >
>> > These lines look awful.
>> > Is there a better way?
>> >
>> > Much obliged.
>> > Zach.
>> >
>> >
>>
>>
>
>


.



Relevant Pages

  • Re: ASP.NET C#
    ... and i'm not talking about the html. ... > I prefer to write ASP+ web sites in much the same way as I write Windows ... > Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Zero Width Pen Draws through clipped region...
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Exclude the rectangle from the graphics clip region. ... IF you use a pen that is more than one pixel the clipping works ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Partial zooming using transform
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Is there any "good way" of figuring out the dimensoions of the transformed image to get the size of the border I need to draw? ... the "object" will be a square or a slice of pixels with its own individual zoom and transform. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Scrolling question
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... protected override void OnPaint ... > to scoll just fine, but at least for me, the Sine wave will not scroll ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Rotate ellipse around center
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs ... > ellipse what so erver. ...
    (microsoft.public.dotnet.framework.drawing)