I have a textBox1 in my windows form. I would like to use it to get date from the user. I want to show MonthCalender1 once the user put the cursor in the textbox1 and then set the date in the textbox1 automatically and then the calender will disappear. How can I use C# or C++/CLI to do that?
I have a textBox1 in my windows form. I would like to use it
Share
This is not the best code, but I hope you get the idea:
First, you set the
MaxSelectionCountfor you monthCalendar control. Next, you adding event listeners for leaving focus and gaining focus.If you don’t get it working, I can provide sample solution where I tested it.