Hi,
I am using a RadDock control with AutoDetectMDIChildren set to true. I have been given forms to be hosted as tabbed documents. I do this by setting the forms' MdiParent property to the main form and then calling their Show methods. These forms override the Form.OnActivated method. This method is never called.
Here is a simplified example:
When I first show the form I would expect its Label1 to display Activated 1. If I click on another tab then back on this form's tab I would expect to see Activated 2 etc.
Thanks
I am using a RadDock control with AutoDetectMDIChildren set to true. I have been given forms to be hosted as tabbed documents. I do this by setting the forms' MdiParent property to the main form and then calling their Show methods. These forms override the Form.OnActivated method. This method is never called.
Here is a simplified example:
public partial class MdiChild : Form |
{ |
public MdiChild() |
{ |
InitializeComponent(); |
} |
int counter = 0; |
protected override void OnActivated(EventArgs e) |
{ |
label1.Text = string.Format("Activated {0}", ++counter); |
} |
} |
Thanks