datetime picker problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a wierd problem. I have a datetime picker that doesn't seem to
want to sinc up its .value and .text proberties. I can step through the code
and see that they are different values. I have even tried to use .resetText
and recalc the value every time and even that only works half of the time.
The funny thing is that if I do a watch and step through the code it seems to
work most of the time, but if I just run the code it hardly ever works. Any
ideas?
 
Brian,

Without any code this is only something you tell us, do you want some help,
than show some code that you use for the datetimepicker and its events or
other events that effect it.

Cor
 
I was looking to find out if there were any problem with the latest .Net
Framework and vb not working right. The code is pretty simple, so I am
pretty sure that isn't the problem. It runs the code and ignores it, and
uses the default dateTime.

Dim tempdatetime As DateTime
tempdatetime = New DateTime(2004, 12, 31, 23, 59, 59, 999)
validUntilDTP.Value = tempdatetime
validUntilDTP.Text = tempdatetime ' put it to see if this help,
but still no
 
Brian,

In this part of the code I see nothing, however I advise you to set option
strict on in top of your program files.

Did you allready create a new project with only one timepicker and than this

me.datetimepicker.value = New DateTime(2004, 12, 31, 23, 59, 59, 999)

That should be enoug

validUntilDTP.Text = tempdatetime

Here I could see you have no option strict on

Here you try to set the text to a datetime value, however that is not your
error in my opinion because that will latebinding resolve.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top