I put a DateTimePicker in 2 forms, FormA and FormB.
I set it with CustomFormat "MMMM, yyyy".
So, the DateTimePicker should display "July, 2003".
I put the following code in each form to display the date:
Code:
MessageBox.Show(DateTimePicker.Text)
In FormA, the message box displayed as "July, 2003".
In FormB, the message box only display empty string.
Why is this so?
For your information, I copy the DateTimePicker from FormA and paste to FormB.
How can I make the message box in FormB to display "July, 2003" as well?
Please guide, thank you.