Hi..........
In my windows application I need a calender user
control which popsup on wen a button is clicked and fills the selected
date on a text box near the button.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Marimuthu ArigovindasamyRank #5,893 · 283 reputationPosted Jun 30, 2010, 3:51 PM EDT
1. Display the DOB and DOJ control in left and right side (in 2 columns) or
2. Make the "Bring to front" first for the DOJ control and then the top calender control (DOB).
Please find the attached code.
Marimuthu ArigovindasamyRank #5,893 · 283 reputationPosted Jun 23, 2010, 6:08 PM EDT
diya23 reputationPosted Jun 24, 2010, 10:37 PM EDT
thanks for ur reply....... bt this one is a big usercontrol..... we cant use it in application ... it wil took a large space...
Can u find one in which calender popsup on click only....
thanku
diya
Marimuthu ArigovindasamyRank #5,893 · 283 reputationPosted Jun 24, 2010, 11:01 PM EDT
It's exactly same as ur requirement.
Usercontrol has textbox and image button control. When u click on the button, it will open a calendar popup. Once the user selects the date, will update that text box with the selected value.
See attachement.
diya23 reputationPosted Jun 27, 2010, 8:44 PM EDT
Thanks for ur reply
Try to place a few control near the user control in a form and run
u can see that calender wil me over those controls and is not fully visible
Plz... see this attachment
Marimuthu ArigovindasamyRank #5,893 · 283 reputationPosted Jun 27, 2010, 9:10 PM EDT
2. Set AutoSize to true for the calender control properties in design mode (frmTest.cs [Design] )
3. Pls ensure, surely do u need monthCalendarDate_DateChanged event. (If yes, pls invisible the calender accordingly)
If u want only do the functionality when the user selects the date from calender control use monthCalendarDate_DateSelected event.
Attached updated code
diya23 reputationPosted Jun 30, 2010, 1:55 AM EDT
thanku
diya
diya23 reputationPosted Jun 30, 2010, 3:31 AM EDT
Its works fine when there is only one date control.
Bt if there r 2 date control nearby and given Bring to front on both then one wil b over the other.
Attached the sample apln here.
thanku
diya
diya23 reputationPosted Jun 30, 2010, 8:40 PM EDT
It works fine
Thanks a lot :)
thanku
diya