varrey Posted April 18, 2006 Posted April 18, 2006 Hi, I am trying to use MonthCalender to fill the dates in the text boxes in the same form. I don't have any inkling of how to do it. Can anyone please help. Regards Varrey Quote
Cags Posted April 18, 2006 Posted April 18, 2006 I'm not entirely sure what you are trying todo. So I'll give you some examples of working with a MonthCalander. // this gets the selected date and outputs it to a ShortDate string, you can select many differnt formats also, such as ToLongDateString monthCalendar1.SelectionStart.ToShortDateString(); If you wished to add this date to a textbox you would do something along the lines of textBox1.Text = monthCalendar1.SelectionStart.ToShortDateString(); By adding this code to the DateChanged method of the MonthCalander you could then have the textbox updated whenever the MonthCalander is changed. If I didn't provide you with the answer you required, please let me know what it was you needed to know. Quote Anybody looking for a graduate programmer (Midlands, England)?
varrey Posted April 19, 2006 Author Posted April 19, 2006 Thanks Hi, Thanks CAGS. It worked. Regards Varrey Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.