M
Mr.Tickle
private void toolBar1_ButtonClick(object sender,
System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
int buttonPushed = this.toolBar1.Buttons.IndexOf(e.Button);
switch (buttonPushed)
{
case 0:
{
Form f1 = new Form();
f1.Text = "child form 1";
f1.MdiParent = this;
f1.Load += new System.EventHandler(this.onMdiLoad);
f1.Show();
break;
}
Odd. on the Show() call i get OutOfMemoryException.
System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
int buttonPushed = this.toolBar1.Buttons.IndexOf(e.Button);
switch (buttonPushed)
{
case 0:
{
Form f1 = new Form();
f1.Text = "child form 1";
f1.MdiParent = this;
f1.Load += new System.EventHandler(this.onMdiLoad);
f1.Show();
break;
}
Odd. on the Show() call i get OutOfMemoryException.