System.Windows.Forms.Control.OnParentChanged(System.EventArgs)

Here are the examples of the csharp api class System.Windows.Forms.Control.OnParentChanged(System.EventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

28 Examples 7

1. Example

View license
protected override void OnParentChanged(EventArgs e)
        {
            if (Parent != null)
            {
                Parent.Invalidated -= ParentOnInvalidated;
                Parent.Resize -= ParentOnResize;
            }
            base.OnParentChanged(e);
            if (Parent != null)
            {
                Parent.Invalidated += ParentOnInvalidated;
                Parent.Resize += ParentOnResize;
            }
        }

2. Example

View license
protected override void OnParentChanged(EventArgs e) {
      if (this.Parent != null) { this.BackColor = this.Parent.BackColor; }
      base.OnParentChanged(e);
    }

3. Example

Project: Unity-WinForms
Source File: Control.cs
View license
internal virtual void AssignParent(Control value)
        {
            parent = value;
            OnParentChanged(EventArgs.Empty);
        }

4. Example

Project: UpDown-Meter
Source File: DockedPanel.cs
View license
protected override void OnParentChanged(EventArgs e) {
            base.OnParentChanged(e);

            Dock = DockStyle.Fill;
        }

5. Example

Project: AeroSuite
Source File: HeaderlessTabPage.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            if (!this.DesignMode && this.Parent != null && !(this.Parent is HeaderlessTabControl))
            {
                throw new InvalidOperationException("A HeaderlessTabPage cannot be put in anything other than a HeaderlessTabControl.");
            }

            base.OnParentChanged(e);
        }

6. Example

Project: SharpBoot
Source File: GroupedComboBox.cs
View license
protected override void OnParentChanged(EventArgs e) {
		base.OnParentChanged(e);
		_groupFont = new Font(Font, FontStyle.Bold);
	}

7. Example

Project: ImageGlass
Source File: ImageBox.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            base.OnParentChanged(e);
            AdjustLayout();
        }

8. Example

Project: MapleShark
Source File: DockPanel.cs
View license
protected override void OnParentChanged(EventArgs e)
		{
            SetAutoHideWindowParent();
            GetMdiClientController().ParentForm = (this.Parent as Form);
			base.OnParentChanged (e);
		}

9. Example

Project: dockpanelsuite
Source File: DockPanel.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            SetAutoHideWindowParent();
            GetMdiClientController().ParentForm = (this.Parent as Form);
            base.OnParentChanged (e);
        }

10. Example

Project: EDDiscovery
Source File: ImageViewer.cs
View license
protected override void OnParentChanged(System.EventArgs e)
        {
            base.OnParentChanged(e);
            this.AdjustLayout();
        }

11. Example

View license
protected override void OnParentChanged(EventArgs e)
        {
            base.OnParentChanged(e);
            MaximumSize = new Size(Math.Min(Parent.Width * 80, MaterialActionBar.ACTION_BAR_HEIGHT * 5), 10000);
            Width = _SideDrawerFixiert ? MaximumSize.Width : 0;
        }

12. Example

View license
protected override void OnParentChanged(EventArgs e)
        {
            base.OnParentChanged(e);
            Dock = DockStyle.Top;
            DrawBackArrow = ((MaterialForm)Parent).SideDrawer != null;
            if(DrawBackArrow)
                DrawBackArrow = ((MaterialForm)Parent).SideDrawer.SideDrawerFixiert;
            Refresh();
        }

13. Example

Project: ArnoldSimulator
Source File: DockPanel.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            SetAutoHideWindowParent();
            GetMdiClientController().ParentForm = (this.Parent as Form);
            base.OnParentChanged (e);
        }

14. Example

Project: gitter
Source File: ViewHost.cs
View license
protected override void OnParentChanged(EventArgs e)
		{
			base.OnParentChanged(e);
			UpdateOwnerForm();
		}

15. Example

Project: lua-tilde
Source File: DockPanel.cs
View license
protected override void OnParentChanged(EventArgs e)
		{
            SetAutoHideWindowParent();
            GetMdiClientController().ParentForm = (this.Parent as Form);
			base.OnParentChanged (e);
		}

16. Example

Project: Nexus-Mod-Manager
Source File: DockPanel.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            SetAutoHideWindowParent();
            GetMdiClientController().ParentForm = (this.Parent as Form);
            base.OnParentChanged (e);
        }

17. Example

Project: ninject1
Source File: PresentedControl.cs
View license
protected override void OnParentChanged(EventArgs e)
		{
			base.OnParentChanged(e);

			if ((_lastParent == null) && (Parent != null))
				Shown(this, EventArgs.Empty);

			_lastParent = Parent;
		}

18. Example

Project: Be.HexEditor
Source File: MenuStripEx.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            base.OnParentChanged(e);

            EnableFormEvents();
        }

19. Example

Project: Be.HexEditor
Source File: ToolStripEx.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            base.OnParentChanged(e);

            EnableFormEvents();
        }

20. Example

Project: SystemEx
Source File: FormFlowFooter.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            base.OnParentChanged(e);

            GetSizeGripDetails();
        }

21. Example

Project: ynoteclassic
Source File: DockPanel.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            SetAutoHideWindowParent();
            GetMdiClientController().ParentForm = (Parent as Form);
            base.OnParentChanged(e);
        }

22. Example

Project: SquareOne
Source File: DockPanel.cs
View license
protected override void OnParentChanged(EventArgs e) {
			SetAutoHideWindowParent();
			GetMdiClientController().ParentForm = (this.Parent as Form);
			base.OnParentChanged(e);
		}

23. Example

Project: xenadmin
Source File: DoubleBufferedPanel.cs
View license
protected override void OnParentChanged(EventArgs e)
        {
            base.OnParentChanged(e);
            RefreshBuffer();
        }

24. Example

Project: FieldLog
Source File: USizeGrip.cs
View license
protected override void OnParentChanged(EventArgs args)
		{
			if (prevParent != null)
				prevParent.Resize -= ParentForm_Resize;

			base.OnParentChanged(args);
			// Update this value whenever the parent Form has changed, or in case it wasn't set yet before
			KeepBottomRight = KeepBottomRight;

			prevParent = FindFormEx();
			prevParent.Resize += ParentForm_Resize;
		}

25. Example

Project: ceptr
Source File: DockPanel.cs
View license
protected override void OnParentChanged(EventArgs e)
		{
            SetAutoHideWindowParent();
            GetMdiClientController().ParentForm = (this.Parent as Form);
			base.OnParentChanged (e);
		}

26. Example

Project: BloomDesktop
Source File: WizardControl.cs
View license
protected override void OnParentChanged(EventArgs e)
		{
			base.OnParentChanged(e);

			var form = FindForm();
			if (form == null)
				return;

			form.Text = Title;
			form.Icon = TitleIcon;
		}

27. Example

Project: HOPE
Source File: DockPanel.cs
View license
protected override void OnParentChanged(EventArgs e)
		{
            SetAutoHideWindowParent();
            GetMdiClientController().ParentForm = (this.Parent as Form);
			base.OnParentChanged (e);
		}

28. Example

View license
protected override void OnParentChanged(EventArgs e)
        {
            base.OnParentChanged(e);

            if (Parent != null)
            {
                if (Parent.IsHandleCreated)
                    InstallDropDownNotifier();
                else
                    Parent.HandleCreated += new EventHandler(Parent_HandleCreated);
            }
            else
            {
                RemoveDropDownNotifier();
            }
        }