Click here to Skip to main content
16,007,760 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: reload or refresh from in another form Pin
break_day9-Jan-08 21:29
break_day9-Jan-08 21:29 
GeneralRe: reload or refresh from in another form Pin
Michael Sync9-Jan-08 22:19
Michael Sync9-Jan-08 22:19 
GeneralRe: reload or refresh from in another form Pin
break_day9-Jan-08 23:48
break_day9-Jan-08 23:48 
GeneralRe: reload or refresh from in another form Pin
Dave Kreskowiak10-Jan-08 1:56
mveDave Kreskowiak10-Jan-08 1:56 
Generalproblem with drawstring somewhere Pin
vbbeg9-Jan-08 7:58
vbbeg9-Jan-08 7:58 
GeneralRe: problem with drawstring somewhere Pin
Luc Pattyn9-Jan-08 17:57
sitebuilderLuc Pattyn9-Jan-08 17:57 
GeneralRe: problem with drawstring somewhere Pin
vbbeg9-Jan-08 18:07
vbbeg9-Jan-08 18:07 
GeneralRe: problem with drawstring somewhere [modified] Pin
Luc Pattyn10-Jan-08 1:30
sitebuilderLuc Pattyn10-Jan-08 1:30 
Hi,

DrawString takes many parameters, including the string text, and a pair of coordinates.
So why not organiza a loop (for, or while), and call DrawString many times, each time
with the same string (just "TESTING" would do), but with different coordinates?

The only drawbacks I can see is:
1. when you rely on DrawString to do word wrapping for you, then it needs all the wrappable
text at once; but for text lines of less than 10 chars each, this does not apply, does it?
2. when you rely on DrawString to do pagination for you, then it again needs all the
text at once; but that is not how pagination should be handled; you really need to
take care of coordinates yourself, and as soon as y reaches the bottom of the page,
tou should remember your position in the document, print the current page, and when
the next PrintPage event occurs, continue where you left off. Of course, if all your
pages are to be identical, you can just print N pages with L lines of text.
(You would need PrintPageEventArgs.HasMorePages no to ask for another page...)

BTW: if printing seems to complicate matters for you, you can do exactly the same
when painting text onto a Panel on screen...

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Happy 2008!


modified on Thursday, January 10, 2008 10:37:38 AM

GeneralRe: problem with drawstring somewhere Pin
vbbeg10-Jan-08 4:47
vbbeg10-Jan-08 4:47 
GeneralRe: problem with drawstring somewhere Pin
Luc Pattyn10-Jan-08 4:56
sitebuilderLuc Pattyn10-Jan-08 4:56 
GeneralRe: problem with drawstring somewhere Pin
vbbeg10-Jan-08 6:02
vbbeg10-Jan-08 6:02 
GeneralRe: problem with drawstring somewhere Pin
Luc Pattyn10-Jan-08 6:37
sitebuilderLuc Pattyn10-Jan-08 6:37 
GeneralRe: problem with drawstring somewhere Pin
Dave Kreskowiak10-Jan-08 5:12
mveDave Kreskowiak10-Jan-08 5:12 
JokeRe: problem with drawstring somewhere Pin
ChandraRam9-Jan-08 20:57
ChandraRam9-Jan-08 20:57 
GeneralRe: problem with drawstring somewhere Pin
vbbeg9-Jan-08 22:19
vbbeg9-Jan-08 22:19 
GeneralRe: problem with drawstring somewhere Pin
ChandraRam9-Jan-08 22:23
ChandraRam9-Jan-08 22:23 
GeneralRe: problem with drawstring somewhere Pin
vbbeg9-Jan-08 22:55
vbbeg9-Jan-08 22:55 
QuestionRegistry Access Problem Pin
psgeorge9-Jan-08 7:49
psgeorge9-Jan-08 7:49 
GeneralRe: Registry Access Problem Pin
Dave Kreskowiak9-Jan-08 7:59
mveDave Kreskowiak9-Jan-08 7:59 
GeneralRe: Registry Access Problem Pin
psgeorge10-Jan-08 1:35
psgeorge10-Jan-08 1:35 
QuestionRe: Registry Access Problem Pin
psgeorge11-Jan-08 1:51
psgeorge11-Jan-08 1:51 
GeneralRe: Registry Access Problem Pin
Dave Kreskowiak11-Jan-08 12:15
mveDave Kreskowiak11-Jan-08 12:15 
GeneralRe: Registry Access Problem Pin
psgeorge14-Jan-08 0:18
psgeorge14-Jan-08 0:18 
QuestionDraw a graph in VB.NET Pin
Yatish Kasa9-Jan-08 6:51
Yatish Kasa9-Jan-08 6:51 
GeneralRe: Draw a graph in VB.NET Pin
Dave Kreskowiak9-Jan-08 7:01
mveDave Kreskowiak9-Jan-08 7:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.