dateandtimepicker in vb.net 2003
-
got 1 form with dateandtimepicker on it but trying to send that info to another dtp on another form but the message reads that you cannot convert string to dateandtimepicker. thank you before hand.
What's the code you're using to get the value of your first DTP and send it to the next form?
Dave Kreskowiak Microsoft MVP - Visual Basic
-
What's the code you're using to get the value of your first DTP and send it to the next form?
Dave Kreskowiak Microsoft MVP - Visual Basic
-
this code is for the add button on my performance form that will send the details to the reservation form but it says that value of string cannot be converted to 'system windows form.TextBox
frmNewBooking.txtDateOfPerformance = dtpPerformDate.Text
the code you want is
frmNewBooking.txtDateOfPerformance.TEXT = dtpPerformDate.Text
you're reading the text out of the DateTimePicker and then you need to assign it to the Text Property of the Textbox. Textboxes are more than just text - they have other properties availableJason
-
the code you want is
frmNewBooking.txtDateOfPerformance.TEXT = dtpPerformDate.Text
you're reading the text out of the DateTimePicker and then you need to assign it to the Text Property of the Textbox. Textboxes are more than just text - they have other properties availableJason