Hello!!
I just wonder which of these two methods is most suitable to use in this
circumstances
when the main application window form is minimized I will minimize
all window forms that the main window form has made visible.
To make this possible I can use whichever of these two methods.
When the window form for the application is minimized this method
OnSizeChanged is called.
Protected override void OnSizeChanged(E ventArgs e)
{
...
}
I have used the form designer to be able to create this event handler.
This method MeltPracForm_Si zeChanged is also called when the window form
for application is minimized.
private void MeltPracForm_Si zeChanged(objec t sender, System.EventArg s e)
{
...
}
So what method do you suggest is most suitable to use for me?
//Tony
"Robert Halford" <ro************ @tiscali.com> skrev i meddelandet
news:eY******** ******@TK2MSFTN GP02.phx.gbl...
Would it be true to say that usually the main functional difference with
the protected override method vs calling a delegate is the ability to
override the default behavor by returning true. This doesn't appear to be the
case in this example as there is a void return value, but often protected
override methods return a bool which allow you to do this, and you just can't do
that with the delegate.
"tony" <jo************ *****@telia.com > wrote in message
news:O$******** ******@TK2MSFTN GP04.phx.gbl... Hello!
What is the differens if I use event handler onSizeChanged compare to
using
the other event handler MeltPracForm_Si zeChanged.
I see both as event handler is that right?
I catch the event in both cases. So is it more or less the same thing
which
of these two event handler I use.
protected override void OnSizeChanged(E ventArgs e)
{
...
}
private void MeltPracForm_Si zeChanged(objec t sender, System.EventArg s
e) {
...
}
//Tony