TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
nixnaegie
NA
1
0
datetimepicker problem
Feb 25 2005 3:37 PM
I'm pretty new to c# so i'm still trying to figure this all out. I have a datetimepicker on my form to which I only show the time. I'm trying to set the value of it when the form loads to a datetime I'm sending from another form. Anytime i try to set the value i get an exception that says "String was not recognized as a valid datetime." However if i do a catch on that exception and let it run on through it fills the time in the form correctly. I can, however, set the time to datetime.now and it works fine. Why doesn't it work when i change the value to something else? I also downloaded DateTimeExtended which allows the properties of date/time to be set and if try that and set the time to Now and then just try to change the hours/min/secs, that doesn't work either. I thought for sure that was going to work.
Reply
Answers (
0
)
ANOTHER QUESTION!!! Reading command line parameters
Drawing on Label leads to throw exception?