The easiest way to do this is to add a second form to your project on which you can place the calendar. Create a button on the main form, and in the click event, instantiate an instance of the calendar form, then show it. For example,
1. Add a form 'frmCalendar' to your current project, and place a calendar control on it.
2. Add a button 'Calendar' to your main form.
3. Add a 'click' event to the 'Calendar' button by double clicking on it in design view, then add code to instantiate and show the calendar:
frmCalendar theCalendar = new frmCalendar();
theCalendar.Show();
This should give you what you are looking for - good luck.
kw
|