List Info

Thread: Progressing MDI child forms




Progressing MDI child forms
user name
2006-01-27 10:28:11
im having an MDI form with child forms, when a user loads a
child form,
it takes a few seconds to initialize all the controls on the
form, i
want to use a Progress bar to show the progress,
is there a technique to do so in an easy way? I think its
only possible
that the child form sets the value manually, so every time a
control is
loaded i have to set the value, that implies that when later
i want to
add a control to the form, i have to change all the values,
i want to
find a way that is more common, any ideas?

Progressing MDI child forms
user name
2006-01-27 19:00:58
on the form load event before InitilizeComponent() attach a
custom
event to the Form.ControlAdded event handler.
Then when initialize component is called it will raise your
custom
event handler every time a new control is added and during
the
InitilizeComponent() all the forms controls are added.
Hope that helps.

Marty

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )