Category / Section
How to design a PopupControlContainer
1 min read
Using the designer
Just drag-and-drop the PopupControlContainer component onto your form. You can then configure the PopupControlContainer by adding controls to it (just like you would to a panel) and by changing its properties via the designer’s property grid.
Make sure to set the necessary BorderStyle in the PopupControlContainer.
In Code
Creating and populating a PopupControlContainer is no different from creating and populating any other ContainerControl.
Once created, during run-time you show the popup as follows:
this.popupControlContainer1.ShowPopup(pointInScreenCoOrds);