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
665
Using an UltraToolbarsManager with a UserControl
posted

Hi,

I have created a simple user control which includes a textbox and a button.
I have added the user control and an UltraToolbarsManager to a form.
I have added a PopupMenuTool and a ButtonTool to the ToolbarsManager with the ButtonTool added to the PopupMenuTool.
Finally I've set the 'ContextMenuUltra on ToolbarsManager' property to the PopupMenuTool for the user control.

When I right click on the text box in the user control my context menu appears.

However if I right click on the text box again (without navigating elsewhere) the built-in textbox context menu appears (Undo, Cut, Copy, Paste etc.) not my context menu from the ToolbarsManager.

Any help getting my context menu to appear everytime and not the built-in textbox context menu would be greatly appreciated.

Many Thanks,
Paul

Parents Reply Children
No Data