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

Need Your Help

Error in generating C# classes using xsd.exe

c# xml visual-studio-2010 xsd.exe

I have XML file from which I want to make C# classes by using xsd.exe tool. But upon running the tool, it gives following error

Html in JLabel Java Swing

html swing

I tried make JLabel with 2 different font sizes. First is 32pt and second is 16pt, and it should be in the center of Jpanel. Here is my code: