hi Norman,
This is what i have and it dose not seem to work at Design time. Is this
wrong.
protected override void OnResize(EventArgs e)
{
if (base.Width < 219)
{
base.Width = 219;
}
if (base.Height < 93)
{
base.Height = 93;
}
base.OnResize(e);
}
private void QuestionControl_Resize(object sender, EventArgs e)
{
QuestionAnswerControl oControl = (QuestionAnswerControl)sender;
oControl.vScrollBar.Maximum = oControl.pnSlide.Height -
oControl.pnMain.Height;
}
Thanks,
ink
"Norman Rericha" <Rayogen@nospam_gmail.comwrote in message
news:mn***********************@nospamgmail.com...
In that function you will be able to determine the min sizes you want the
forms/controls to be. Then stop resizing from "accepting" if the new size
is below defined constants.
This way the user will be able to make it bigger, but then smaller after
that, until it is less then the starting dimentions.
Hope that helps
--
Norman Rericha
Sr. Software Architect
Embedded Systems
4Techwork.com