how to display user control inside a modal popup in windows form?
I have to display a usercontrol containing 2 datepickers, 2 buttons ( validate, cancel ) in a modal popup. This popup is shown when the user has clicked on a specific button on the form.
Any ideas ? Thnks in advance
You can add your user control to a Form -- say you called if frmPopup, create a new instance of it and call it with ShowDialog(). You need to have a pair of buttons on the Form as well to give the user a way to close or cancel the dialog. Microsoft has more information for you here