共用方式為


ToolStripControlHost.OnParentChanged(ToolStrip, ToolStrip) 方法

定義

引發 ParentChanged 事件。

protected:
 override void OnParentChanged(System::Windows::Forms::ToolStrip ^ oldParent, System::Windows::Forms::ToolStrip ^ newParent);
protected override void OnParentChanged (System.Windows.Forms.ToolStrip oldParent, System.Windows.Forms.ToolStrip newParent);
protected override void OnParentChanged (System.Windows.Forms.ToolStrip? oldParent, System.Windows.Forms.ToolStrip? newParent);
override this.OnParentChanged : System.Windows.Forms.ToolStrip * System.Windows.Forms.ToolStrip -> unit
Protected Overrides Sub OnParentChanged (oldParent As ToolStrip, newParent As ToolStrip)

參數

oldParent
ToolStrip

此項目的原始父代。

newParent
ToolStrip

此項目的新父代。

適用於

另請參閱