Click here to Skip to main content
16,005,437 members
Home / Discussions / C#
   

C#

 
AnswerRe: froms in MDI [modified] Pin
musefan20-May-09 3:24
musefan20-May-09 3:24 
GeneralRe: froms in MDI Pin
sachees12320-May-09 23:45
sachees12320-May-09 23:45 
QuestionWhy Printing events not fired Pin
svt gdwl20-May-09 2:32
svt gdwl20-May-09 2:32 
AnswerRe: Why Printing events not fired Pin
Manas Bhardwaj20-May-09 2:38
professionalManas Bhardwaj20-May-09 2:38 
AnswerRe: Why Printing events not fired Pin
musefan20-May-09 2:52
musefan20-May-09 2:52 
GeneralRe: Why Printing events not fired Pin
svt gdwl20-May-09 3:04
svt gdwl20-May-09 3:04 
GeneralRe: Why Printing events not fired Pin
harold aptroot20-May-09 3:09
harold aptroot20-May-09 3:09 
GeneralRe: Why Printing events not fired Pin
musefan20-May-09 3:12
musefan20-May-09 3:12 
I just told you your events have been assigned to a specific instance of a PrintDocument i.e. Pd

These events will only fire when you call Pd.Print(); and it must be called after the events are assigned...

System.Drawing.Printing.PrintDocument Pd = new System.Drawing.Printing.PrintDocument();
 
Pd.BeginPrint +=new System.Drawing.Printing.PrintEventHandler(Pd_BeginPrint);
Pd.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(Pd_PrintPage);
Pd.EndPrint += new System.Drawing.Printing.PrintEventHandler(Pd_EndPrint);
Pd.Print();



...the events will now fire, providing your print document is set up. However they wont fire when you click print inside internet explorer

Life goes very fast. Tomorrow, today is already yesterday.

QuestionRegex for MM/YYYY date format Pin
Mninawa20-May-09 2:11
Mninawa20-May-09 2:11 
AnswerRe: Regex for MM/YYYY date format Pin
Michael Bookatz20-May-09 2:17
Michael Bookatz20-May-09 2:17 
GeneralRe: Regex for MM/YYYY date format Pin
Nagy Vilmos20-May-09 2:32
professionalNagy Vilmos20-May-09 2:32 
GeneralRe: Regex for MM/YYYY date format Pin
Michael Bookatz20-May-09 2:37
Michael Bookatz20-May-09 2:37 
GeneralRe: Regex for MM/YYYY date format Pin
Nagy Vilmos20-May-09 3:01
professionalNagy Vilmos20-May-09 3:01 
AnswerRe: Regex for MM/YYYY date format Pin
musefan20-May-09 2:35
musefan20-May-09 2:35 
AnswerRe: Regex for MM/YYYY date format Pin
PauloCastilho20-May-09 4:39
PauloCastilho20-May-09 4:39 
GeneralRe: Regex for MM/YYYY date format Pin
Mninawa20-May-09 20:16
Mninawa20-May-09 20:16 
GeneralRe: Regex for MM/YYYY date format Pin
deepakaitr123455-Jul-13 3:44
deepakaitr123455-Jul-13 3:44 
AnswerRe: Regex for MM/YYYY date format Pin
Pete O'Hanlon20-May-09 4:52
mvePete O'Hanlon20-May-09 4:52 
Questionc# server security Help me out! Pin
evangile20-May-09 0:36
evangile20-May-09 0:36 
AnswerRe: c# server security Help me out! Pin
Henry Minute20-May-09 0:59
Henry Minute20-May-09 0:59 
GeneralRe: c# server security Help me out! Pin
evangile20-May-09 1:07
evangile20-May-09 1:07 
GeneralRe: c# server security Help me out! Pin
Henry Minute20-May-09 1:10
Henry Minute20-May-09 1:10 
GeneralRe: c# server security Help me out! Pin
evangile20-May-09 1:17
evangile20-May-09 1:17 
GeneralRe: c# server security Help me out! Pin
musefan20-May-09 1:28
musefan20-May-09 1:28 
QuestionSearching Source Code Pin
Jammer20-May-09 0:21
Jammer20-May-09 0:21 

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.