View Single Post
  #2 (permalink)  
Old June 10th, 2007, 08:34 PM
kohinek kohinek is offline
Registered User
 
Join Date: Jun 2007
Location: Prague, , Czech Republic.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to kohinek
Default

easy solution :), but took me a lot of toime to find it and try all possible ways :)

private void OnToolStripItemClicked(object sender, EventArgs e)
{
    ToolStripButton clickedButton = (ToolStripButton)sender;

    ((Form)clickedButton.Tag).Visible = false;

    ((Form)clickedButton.Tag).Activate();

    ((Form)clickedButton.Tag).Visible = true;
}

((Form)clickedButton.Tag) is a MDIChild Form ....

Reply With Quote