Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
How to get underlying control of the PopupMenuTool
posted

I have 2 UltraPictureBox. ultraPictureBox1 and ultraPictureBox2.  I added to the property ContextMenuUltra a PopupMenuTool from the UltraToolBarManager.
At both PictureBoxes it’s the same PopupMenuTool. (I have only 1 PopupMenuTool)

In the ToolClick event, how can I get out on wich PictureBox the PopupMenu was clicked?
private void ultraToolbarsManager1_ToolClick(object sender, ToolClickEventArgs e)
{

}

Parents
  • 44743
    Suggested Answer
    posted

    You can handle the BeforeToolDropdown event of the UltraToolbarsManager. The event arguments for this event contain a SourceControl property which indicates the control for which the context menu was shown. You can cache a reference to the control in this event and then clear it in the AfterToolCloseup event handler.

Reply Children
No Data