Version

Create a Popup of a .NET Control from a Toolbar

You can create a popup of a .NET control from a toolbar or menu by using the WinPopupControlContainer™ tool. This topic will demonstrate how to do so with the WinCalendarCombo™ control.

To create a popup of a .NET control at design time

  1. Add the UltraCalendarCombo element to the Toolbox and then add it to the form. Set the Visible property of this element to False.

  2. To configure the UltraWinToolbar element, open the design-time customizer by right-clicking on the UltraToolbarManager element and selecting "Customize"

  3. To create a new Tool, click the "Tools" tab in the customizer, and then the "New…​" button.

  4. Select Popup Menu and PopupControlContainer as your Tool Types and click on the Add button.

  5. Set the Control property on the PopupControlContainer to the UltraCalendarCombo.

  6. Click the "ToolBars" tab in the customizer, and then the "New…​" button.

  7. Click the "Tools" tab and drag the Popup Menu tool to the ToolBar residing on the form.

  8. Drag the PopupControlContainer to the Popup Menu.

To create a popup of a .NET control at run time

This code depends on the form having a Toolbar on it, and also that you have an WinCalendarCombo named UltraCalendarCombo1, and its Visible property set to false.