: I need an event to be triggered when my form is maximized... : Any ideas : [hr] : El PROgrammador Niklas Ulvinge : (who doesn't know how to spell in inglish) : Why don't you check for the form size in the Form Resize event. You can check for the Form's WindowState property to check whether the form is in maximized state or not.
OK thanks Didnt think of that I was a little tired when I wrote that Thank You [hr] El PROgrammador Niklas Ulvinge (who doesn't know how to spell in inglish)
Comments
: Any ideas
: [hr]
: El PROgrammador Niklas Ulvinge
: (who doesn't know how to spell in inglish)
:
Why don't you check for the form size in the Form Resize event.
You can check for the Form's WindowState property to check whether the form is in maximized state or not.
private void Form1_Resize(object sender, System.EventArgs e)
{
if(this.WindowState == FormWindowState.Maximized)
{
//Your Code.
}
}
All the best
Didnt think of that
I was a little tired when I wrote that
Thank You
[hr]
El PROgrammador Niklas Ulvinge
(who doesn't know how to spell in inglish)