Hi Guys,
I am trying to create a re-sizable windows that when ever a user click a button a groupBox appear at windows ,eventually the Height of the form will increase and when the user want to hide the groupbox the windows will back t its regular size.
I have a winForm as MyForm which has a size of (300,300) and I want to make it as (300,400) when ever the "btnShow" is clicked by users.
I tried to set the Size property which was not available for MyForm.
void btnHideClick(object sender, EventArgs e)
{
gBox.Visible = false;
//MyForm.Size ??????
}
void btnShowClick(object sender, EventArgs e)
{
gBox.Visible = true;
//MyForm.Siz??????
}
Thanks