Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating hidden window Pin
Luc Pattyn3-Jan-07 3:33
sitebuilderLuc Pattyn3-Jan-07 3:33 
GeneralRe: Creating hidden window Pin
mikker_1233-Jan-07 9:17
mikker_1233-Jan-07 9:17 
GeneralRe: Creating hidden window Pin
Luc Pattyn3-Jan-07 9:57
sitebuilderLuc Pattyn3-Jan-07 9:57 
GeneralRe: Creating hidden window Pin
mmf8-Oct-08 0:18
mmf8-Oct-08 0:18 
QuestionHow would i go about inheriting System.IO.FileStream? [modified] Pin
Anthony Mushrow2-Jan-07 4:42
professionalAnthony Mushrow2-Jan-07 4:42 
AnswerRe: How would i go about inheriting System.IO.FileStream? Pin
Judah Gabriel Himango2-Jan-07 5:21
sponsorJudah Gabriel Himango2-Jan-07 5:21 
QuestionWordwrapping when printing Pin
numbers1thru92-Jan-07 3:49
numbers1thru92-Jan-07 3:49 
AnswerRe: Wordwrapping when printing Pin
Luc Pattyn2-Jan-07 16:02
sitebuilderLuc Pattyn2-Jan-07 16:02 
Hi,

the application that shows stuff on the screen is also responsible for formatting it
while printing. It could use the same PaintEvent handler for doing so.
Amongst others this means the application itself must do any word wrapping that is required.

Printing may vary from simple to complex depending on functionality:
- if the screen also shows pages (as in MS Word when viewing "Print layout", then
nothing much has to change for printing (except some border settings, and scaling
that is)
- if the screen only shows continuous data (as in Word's "Normal view", or in
a simple text editor) then new code is required to figure out page boundaries etc.
- furthermore there are issues around printer selection, page settings (per document?
per page?), duplex printing, etc.

So my advice is to separate all these concerns as much as possible.
For one this implies providing a "page mode" or "print layout" view capability to your
app (at least during the development phase, but then why not keep it?),
in order to separate the different problem domains.

Good luck !

Smile | :)



Luc Pattyn

QuestionCustomising the Color of check mark in a checkedListBox Pin
Sreelakshmi Desai2-Jan-07 3:43
Sreelakshmi Desai2-Jan-07 3:43 
QuestionDataGridView Pin
robmays2-Jan-07 3:18
robmays2-Jan-07 3:18 
AnswerRe: DataGridView Pin
mwith2-Jan-07 5:59
mwith2-Jan-07 5:59 
Questionlandscape vs portrait Pin
quiteSmart2-Jan-07 2:32
quiteSmart2-Jan-07 2:32 
AnswerRe: landscape vs portrait Pin
Luc Pattyn2-Jan-07 3:03
sitebuilderLuc Pattyn2-Jan-07 3:03 
QuestionPrinting in C# Pin
numbers1thru92-Jan-07 1:44
numbers1thru92-Jan-07 1:44 
AnswerRe: Printing in C# Pin
Mircea Puiu2-Jan-07 2:10
Mircea Puiu2-Jan-07 2:10 
QuestionMaking a full-screen windows application. Pin
Hussam Fattahi2-Jan-07 0:51
Hussam Fattahi2-Jan-07 0:51 
AnswerRe: Making a full-screen windows application. Pin
Mircea Puiu2-Jan-07 1:11
Mircea Puiu2-Jan-07 1:11 
GeneralRe: Making a full-screen windows application. Pin
Hussam Fattahi2-Jan-07 3:00
Hussam Fattahi2-Jan-07 3:00 
GeneralRe: Making a full-screen windows application. Pin
Mircea Puiu2-Jan-07 21:07
Mircea Puiu2-Jan-07 21:07 
GeneralRe: Making a full-screen windows application. Pin
Hussam Fattahi3-Jan-07 5:54
Hussam Fattahi3-Jan-07 5:54 
QuestionHow to handle unhandled exceptions Pin
kalaveer2-Jan-07 0:30
kalaveer2-Jan-07 0:30 
AnswerRe: How to handle unhandled exceptions Pin
Christian Graus2-Jan-07 0:43
protectorChristian Graus2-Jan-07 0:43 
Questionhow to display messagebox in C# library file Pin
kalaveer2-Jan-07 0:21
kalaveer2-Jan-07 0:21 
AnswerRe: how to display messagebox in C# library file Pin
Christian Graus2-Jan-07 0:39
protectorChristian Graus2-Jan-07 0:39 
QuestionAdding unlimited controls(array..) Pin
vidya.K.A2-Jan-07 0:04
vidya.K.A2-Jan-07 0:04 

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.