Hi Nikos,
Thank you for contacting Syncfusion support.
We hope your requirement is to fire the Button click event based in the ActiveMDIChild, if so this can be achieved by ensuring the child form with the ActiveMdiChild property of the form in the button click event. Please make use of the below code example.
[Code Example C#]
|
private void buttonAdv1_Click(object sender, EventArgs e)
{
Form activeChild = this.ActiveMdiChild;
if (activeChild != null && activeChild == child1)
{
MessageBox.Show("Active MDI Child is : " + activeChild.Text);
}
}
|
We have prepared the sample for your reference and it can be downloaded from below location. If we have misunderstood your query, please provide some additional details about the reported behavior, it will be helpful for us to analyze and provide the prompt solution at the earliest.
Regards,
Senthil