form1_Sizechanged (maximize/minimize ???)

J

JJ

I have athe following code, but nothing happens when I minimize or maximze
the form using "top right corner minimze/maximize icons". What am I
missing!!!!! Help please!!!!!!!!!!

Thanks
JJ



private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if(this.WindowState == FormWindowState.Maximized)
{
MessageBox.Show("Maximized") ;
}
else if (this.WindowState == FormWindowState.Minimized)
{
MessageBox.Show("Minimized") ;
}
}
 
G

Guest

JJ said:
I have athe following code, but nothing happens when I minimize or maximze
the form using "top right corner minimze/maximize icons". What am I
missing!!!!! Help please!!!!!!!!!!

Try checking in the ReSize event. To get my dialog to cover all isntances
of resizing properly I had to respond to both of them. Off the top of my
head though, I don't recall which covered what.
 

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