Current Form resize on button click

Hello,

I have a wizard which has one form that contains one TagControl
with 3 Tag Page...

First Tag page is of fixed size.
But Form when Second tag page is dispalyed can be resized...
It has a Back Button on click on that first tag page should be visible
and the Form should be resized to original size.

I tried on TagControl selectedIndex changed...
But it doesn't happen..

The form get resized when i double click on Title Bar..

I need this functionality on button click..

Please suggest me.

Regards
Amit Pandya

[560 byte] By [AmitPandya] at [2007-12-16]
# 1
Hi,
To change the form to be resizable:

// make it sizable
this.FormBorderStyle = FormBorderStyle.Sizable;
//make it fixed
this.FormBorderStyle = FormBorderStyle.FixedSingle;

//Disabling maximum state when form is double clicked
this.MaximumSize = new Size(this.width, this,height);
//to restore
this.MaximumSize = new Size(0,0);
cheers,
Paul June A. Domag

PaulDomag at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
Hi Paul,

Thanks.

Regards
Amit Pandya

AmitPandya at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified