PC Review


Reply
Thread Tools Rate Thread

drawstring with line wrapping?

 
 
Danie
Guest
Posts: n/a
 
      8th Oct 2003
I need to use drawstring, but it always draws one line, and I need to divide
it. to give it a specified width which it doesnt cross, but starts another
line.
is it possible?

thanks
daniel


 
Reply With Quote
 
 
 
 
Stephen
Guest
Posts: n/a
 
      8th Oct 2003
DrawString is overloaded to allow a StringFormat to be used with it. Play
with that.
"Danie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I need to use drawstring, but it always draws one line, and I need to

divide
> it. to give it a specified width which it doesnt cross, but starts another
> line.
> is it possible?
>
> thanks
> daniel
>
>



 
Reply With Quote
 
Danie
Guest
Posts: n/a
 
      8th Oct 2003
is it able to do what i want?
thanks

"Stephen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> DrawString is overloaded to allow a StringFormat to be used with it. Play
> with that.
> "Danie" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I need to use drawstring, but it always draws one line, and I need to

> divide
> > it. to give it a specified width which it doesnt cross, but starts

another
> > line.
> > is it possible?
> >
> > thanks
> > daniel
> >
> >

>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      8th Oct 2003
"Danie" <(E-Mail Removed)> scripsit:
> I need to use drawstring, but it always draws one line, and I need to divide
> it. to give it a specified width which it doesnt cross, but starts another
> line. is it possible?


\\\
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
e.Graphics.DrawString("Hello World Hello World Hello World", Me.Font, Brushes.Red, New RectangleF(0, 0, 40, 200))
End Sub
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Daniel
Guest
Posts: n/a
 
      8th Oct 2003
thanks
"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:bm0mfj$gq0vq$(E-Mail Removed)...
> "Danie" <(E-Mail Removed)> scripsit:
> > I need to use drawstring, but it always draws one line, and I need to

divide
> > it. to give it a specified width which it doesnt cross, but starts

another
> > line. is it possible?

>
> \\\
> Private Sub Form1_Paint(ByVal sender As Object, ByVal e As

System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
> e.Graphics.DrawString("Hello World Hello World Hello World", Me.Font,

Brushes.Red, New RectangleF(0, 0, 40, 200))
> End Sub
> ///
>
> --
> Herfried K. Wagner
> MVP · VB Classic, VB.NET
> <http://www.mvps.org/dotnet>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How (where ?) to change the line length or turn off auto-line wrapping in Outlook 2003 ? Sven Claasen Microsoft Outlook Discussion 3 9th Mar 2010 06:44 AM
How (where ?) to change the line length or turn off auto-line wrapping in Outlook 2003 ? Sven Claasen Windows XP Help 0 8th Mar 2010 03:09 PM
Re: DrawString with different font sizes at a line Peter Duniho Microsoft C# .NET 0 29th Sep 2006 07:25 PM
Word wrapping in Graphics.DrawString breaks words at umlauts Franz Häring Microsoft Dot NET Framework 0 23rd Mar 2005 11:34 AM
Word wrapping on DrawString method Marcos Cruz Arjona Microsoft Dot NET Compact Framework 4 22nd May 2004 07:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.