Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
| Search | Today's Posts | Mark Forums Read
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2004, 06:56 AM
wwz wwz is offline
Registered User
 
Join Date: Feb 2004
Location: , , China.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Strange behavior of DateTimePicker?

DataTimePicker's value is very strange when it's with focus.

I build a Windows Form with a DateTimePicker and a toolbar, and I add a button to the toolbar. When this button is clicked, it should read the DateTimePicker's Value, and display it in a messagebox.

I run the application, edit the DateTimePicker's value, and kept it focus.
Then I clicked the button on the toolbar. (When I clicked the button, the DateTimePicker's focus was not lost)
And I found that the value displayed in the messagbox is different from the DateTimePicker's current display.

To solve this problem , I had to set focus on other controls before I read the DateTimePicker's value.

Is there any other way to solve this problem?




Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behavior of Firefox 3 and hallo.xml PKHG BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 3 August 6th, 2008 10:32 AM
Strange Behavior With Anchor in XSLT kwilliams XSLT 6 July 21st, 2005 01:52 PM
Strange behavior Listview under XP pavel Pro VB 6 1 June 1st, 2005 05:14 AM
STRANGE behavior..SQL Help skotman Classic ASP Databases 7 June 6th, 2004 02:55 PM
Please help with strange file download behavior! glwatson Classic ASP Basics 0 September 10th, 2003 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.