Click here to Skip to main content
15,902,299 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionTimer for Test Timeout + General Code Structure Pin
RichardBerry4-May-07 22:51
RichardBerry4-May-07 22:51 
AnswerRe: Timer for Test Timeout + General Code Structure Pin
kubben5-May-07 1:11
kubben5-May-07 1:11 
QuestionCustom PaperSize Problem Pin
AmirAlilou4-May-07 21:54
AmirAlilou4-May-07 21:54 
AnswerRe: Custom PaperSize Problem Pin
Duncan Edwards Jones4-May-07 23:48
professionalDuncan Edwards Jones4-May-07 23:48 
GeneralRe: Custom PaperSize Problem Pin
AmirAlilou5-May-07 1:05
AmirAlilou5-May-07 1:05 
AnswerRe: Custom PaperSize Problem Pin
P P Vilsad6-May-07 5:34
P P Vilsad6-May-07 5:34 
GeneralRe: Custom PaperSize Problem Pin
AmirAlilou6-May-07 21:15
AmirAlilou6-May-07 21:15 
GeneralRe: Custom PaperSize Problem Pin
P P Vilsad7-May-07 3:03
P P Vilsad7-May-07 3:03 
yes you must position your text to the newly set papersize. and it will print correctly
initialise your variables in beginprint event because this will be called first when you call printdocument.print method. set a variable to calculate the current height and check it with the pagesettings.printablearea.height and the current printing hight should not exeed this printarea height. if you have more to print then set the hasmorepages = true or when you need to finish set it to false.
the printpage event is repeatedly called when you set hasmorepages = true
Note: Track your current printing position and it should not exeed the paper's limit, if the limit crossed then you will get a infinite number of pages printed.

Vilsad P P
MCTS (Windows Applications) .Net 2.0
Never bring a sword to a gun fight

QuestionIs Multiple Exit points in a method wrong [modified] Pin
RichardBerry4-May-07 21:46
RichardBerry4-May-07 21:46 
AnswerRe: Is Multiple Exit points in a meethod wrong Pin
Xandip4-May-07 22:59
Xandip4-May-07 22:59 
GeneralRe: Is Multiple Exit points in a meethod wrong Pin
RichardBerry4-May-07 23:16
RichardBerry4-May-07 23:16 
AnswerRe: Is Multiple Exit points in a method wrong Pin
Kevin McFarlane5-May-07 3:52
Kevin McFarlane5-May-07 3:52 
AnswerRe: Is Multiple Exit points in a method wrong Pin
Dave Kreskowiak5-May-07 3:57
mveDave Kreskowiak5-May-07 3:57 
GeneralRe: Is Multiple Exit points in a method wrong Pin
Paul Conrad5-May-07 5:18
professionalPaul Conrad5-May-07 5:18 
GeneralRe: Is Multiple Exit points in a method wrong Pin
Kevin McFarlane5-May-07 12:18
Kevin McFarlane5-May-07 12:18 
GeneralRe: Is Multiple Exit points in a method wrong Pin
Paul Conrad5-May-07 12:29
professionalPaul Conrad5-May-07 12:29 
GeneralRe: Is Multiple Exit points in a method wrong Pin
RichardBerry6-May-07 23:56
RichardBerry6-May-07 23:56 
GeneralRe: Is Multiple Exit points in a method wrong Pin
Dave Kreskowiak7-May-07 1:16
mveDave Kreskowiak7-May-07 1:16 
QuestionTiff Image Pin
Ramuv4-May-07 21:44
Ramuv4-May-07 21:44 
Questionshortcut key Pin
Sonia Gupta4-May-07 20:48
Sonia Gupta4-May-07 20:48 
AnswerRe: shortcut key Pin
Rupesh Kumar Swami4-May-07 21:52
Rupesh Kumar Swami4-May-07 21:52 
QuestionRe: shortcut key Pin
Sonia Gupta4-May-07 22:32
Sonia Gupta4-May-07 22:32 
AnswerRe: shortcut key [modified] Pin
Rupesh Kumar Swami4-May-07 23:35
Rupesh Kumar Swami4-May-07 23:35 
GeneralRe: shortcut key Pin
Sonia Gupta5-May-07 0:52
Sonia Gupta5-May-07 0:52 
Questionimmediate window Pin
Sonia Gupta4-May-07 20:38
Sonia Gupta4-May-07 20:38 

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.