Hello,
I assigned for WinPopupContainer property PopupControl:
this.ultraPopupControlContainer1.PopupControl = this.contextMenuStrip1;
When I invoke this control
ultraPopupControlContainer1.Show();
System generate exception(Messege: "Top-level control cannot be added to a control."). What is wrong?
Thanks,
Ruslan
Ruslan,
This happens because when you try to show the UltraPopupControlContainer, it attemps to reparent the ContextMenuStrip, which you cannot do for a TopLevel control. Try setting "this.contextMenuStrip1.TopLevel = false;", which should solve this problem.
-Matt