473,383 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

datetime picker problem

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?
Nov 21 '05 #1
3 2016
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

"Brian" <ja*****@amc.com>
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?

Nov 21 '05 #2
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

"Cor Ligthert" wrote:
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

"Brian" <ja*****@amc.com>
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?


Nov 21 '05 #3
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

"Cor Ligthert" wrote:
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

"Brian" <ja*****@amc.com>
> 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?


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Colin Joss | last post by:
Sorry folks, being a bit dense here. I need a DateTime Picker for a PDA application I'm building. Couldn't see one in the standard tools so search Microsoft. Found one. Downloaded it. Now...
0
by: Ata İsmet Özçelik | last post by:
Hi there, I have a problem with the DateTime picker.. I want to use my custom format; for this I can give a string for the format.But My goal is to have the month name in the box in upper case...
1
by: Dean L. Howen | last post by:
Dear friends, Could you help me to solve the problem: How can we set/get NULL values of datetime in DatetimePicker ? I design a form using DateTimePicker to input/output date value, but the date...
10
by: Dennis D. | last post by:
Trying to write an itinerary program. Got date and time from date time picker Converted it to date variables to extract the date and the time The form has first a textbox displaying the starting...
5
by: Michel Posseth [MCP] | last post by:
Hello we have encountered the following problems with the date time picker control A : datetime picker control gives focus to last entered field when moving back and forward with focus how do...
1
mafaisal
by: mafaisal | last post by:
Hello Experts I am Using vb.net 2005 Hw To Put DateTime Picker in Datagrid view I have to sea Datetime Picker in Specified Cilomn of Datagrid I try This But The Location Hw To Change to the...
4
by: gggram2000 | last post by:
Hi, I'm using php 5.2.3 with mysql server 5.1 as backend. I have a program in which a person enters or chooses two dates from two datetime pickers and other info, I'm not sure if the problem is...
1
by: sonubaba | last post by:
hello, my question is, in my web application i need datetime picker control in which user can select both date and time from DateTime Picker control i could not find this anywhere on inter net ...
0
by: =?Utf-8?B?a3BpenpsZQ==?= | last post by:
Hi all. using vs.net 9, C# I've got a trivial dilemma right now with my datetimepicker. It is bound to a datetime field in a database. This field is also set to not allow nulls. The default...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.