R
Roman S. Golubin1709176985
Hi, everybody!
I create a control inherited from System.Windows.Forms.Control and override
OnParentChanged method:
public class MyControl : System.Windows.Forms.Control
{
protected override void OnParentChanged(System.EventArgs e)
{
// I look for current parent form
System.Windows.Forms.Form frm = this.FindForm();
// and I want to change the parent form Menu:
frm.Menu.Add(...);
and have a problem: creation sequence from the parent form create MyControl
before assign Menu to actual form Menu.
Say please can I monitoring Form.Menu assign ?
Thanks avanced.
--
WBR, Roman S. Golubin
PS: Sorry for bad english.
I create a control inherited from System.Windows.Forms.Control and override
OnParentChanged method:
public class MyControl : System.Windows.Forms.Control
{
protected override void OnParentChanged(System.EventArgs e)
{
// I look for current parent form
System.Windows.Forms.Form frm = this.FindForm();
// and I want to change the parent form Menu:
frm.Menu.Add(...);
and have a problem: creation sequence from the parent form create MyControl
before assign Menu to actual form Menu.
Say please can I monitoring Form.Menu assign ?
Thanks avanced.
--
WBR, Roman S. Golubin
PS: Sorry for bad english.