|
-
Jul 31st, 2003, 02:02 AM
#1
Thread Starter
Registered User
Retrieve DateTimePicker's text
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|