I want to make the toolstrip button on MDI parent to be able perform MySQL command for MDI child
I have try to create button in MDI child with an MySQL command and try to access from MDI parent toolstrip event handler using mdiform.button.PerformClick but not successful
From the ToolStrip Button handler, you can check the type of ActiveMdiChild to make sure it is the correct type of MdiChild form, then cast it and tell the button to click itself.
For instance, my MdiParent is Form1, and the MdiChild is Form2:
Here it is running. Note how the ToolStrip button only works if the Active MdiChild is of type Form2, and not Form3: