Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   c# printpageevnet args (http://www.go4expert.com/forums/c-sharp-printpageevnet-args-t577/)

markyjj 6Feb2006 18:37

c# printpageevnet args
 
Can any one shine some light on this problem that I Have.

Am currently doing an assignment and I have to create a program that prints an ellipse on the page in 5 second intervals using the following signature:

'private void MyHandler(object sender, ElapsedEventArgs args)'

This does not make sense to me as I thought you have to use the (object sender, Printpageevent args) signature to do the actual printing. However, the above signature is what ive got to use.

Maybe am missing something and any advice would be of grat help!!!!!!!!

coderzone 6Feb2006 22:56

Re: c# printpageevnet args
 
Can you explain the problem in a bit better way as to what you want. It looks like you have a function name and want the body of it without specifying what is the input each is to be used for. I guess if its a Home work you can ask the teacher or whoever has given the function signature as to what is sender and args behave actually or expected to behave.

markyjj 7Feb2006 21:40

Re: c# printpageevnet args
 
From what ive learn't I know that I can write a message on the screen at 5 second intervals by using 'private void MyHandler(object sender, ElapsedEventArgs args)' as the signature.

Now I have to do a program that prints an ellipse to the page also at 5 second intervals and I have to use the same signature as above. Am not sure how to use this signature with the print arguments. I hope this is clearer.

coderzone 8Feb2006 03:41

Re: c# printpageevnet args
 
Quote:

Originally Posted by markyjj
From what ive learn't I know that I can write a message on the screen at 5 second intervals by using 'private void MyHandler(object sender, ElapsedEventArgs args)' as the signature..

Probably by writing a handler to the Timer event

Quote:

Originally Posted by markyjj
Now I have to do a program that prints an ellipse to the page also at 5 second intervals and I have to use the same signature as above. Am not sure how to use this signature with the print arguments. I hope this is clearer

Write the same event to draw the ellipse.


All times are GMT +5.5. The time now is 06:35.