Is there an event after form activation?

P

Prodip Saha

I am trying to run a method on a class in a wondows application(C#). The
application has only one form(let's say frmMain). The method on the class
has some event handler and I want to print the messages from those events on
to the frmMain. I have tried to run the method under from activation
event.The method runs ok but I can't see the messages until the method call
is completed (and it defeat the purpose). The problem is--the form itself
has not been painted completely.

So my question is--where do I run the method?

Thanks,
Prodip
 
P

Prodip Saha

I have tested the method under the pain event but it did not help. Looks
like the form got painted but controls(where the messages should be printed)
on the form are not.

Add to my initial comment--I can run the method on a separate Thread and it
appears to be fine as far as the painting issue. I did not like the way
error exception ended on the thread.

Thanks for the reply. Any suggestion is appreciated.
Prodip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top