Form_load

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

I just wonder if someone could give a good example of what must be put into
Form_Load. and
can't be put into the C-tor.
So far I have found that all of my examples can be put into the c-tor insted
of the Form_Load

//Tony
 
I just wonder if someone could give a good example of what must be put into
Form_Load. and
can't be put into the C-tor.
So far I have found that all of my examples can be put into the c-tor insted
of the Form_Load

There can be several reasons:

1) You have some unusual code like:

Form f = new YourForm();
// something that takes a long time
Application.Run(f);

and you only want whatever done when the form is actually shown.

2) You believe that constructors should be short and fast executing
while doing real work should be left to another method.

3) You have seen it in some example and have just copied it.

I don't do it.

Arne
 
Back
Top