M
Marty
Hi,
I have this issue where a form that contain a
System.windows.forms.mainmenu has its height increased by the height of
the mainmenu at object creation level.
Here's the idea:
//form creation
frmMyForm myForm = new frmMyForm();
//frmMyForm constructor
public frmMyForm() : base()
{
InitializeComponent();
this.Width = 200;
this.Height = 200;
this.Show();
}
//Then the form has its height = this.Height + this.MainMenu.height;
//But if I show the form before setting the height, then the form get
//its correct height = 200.
//frmMyForm constructor
public frmMyForm() : base()
{
InitializeComponent();
this.Show();
this.Width = 200;
this.Height = 200;
this.Show();
}
Do you have an idea?
Thank you
Marty
I have this issue where a form that contain a
System.windows.forms.mainmenu has its height increased by the height of
the mainmenu at object creation level.
Here's the idea:
//form creation
frmMyForm myForm = new frmMyForm();
//frmMyForm constructor
public frmMyForm() : base()
{
InitializeComponent();
this.Width = 200;
this.Height = 200;
this.Show();
}
//Then the form has its height = this.Height + this.MainMenu.height;
//But if I show the form before setting the height, then the form get
//its correct height = 200.
//frmMyForm constructor
public frmMyForm() : base()
{
InitializeComponent();
this.Show();
this.Width = 200;
this.Height = 200;
this.Show();
}
Do you have an idea?
Thank you
Marty