Microsoft KB Archive/191550

= BUG: DateTimePicker Won't Scroll Full Text in Visible Combo Area =

Article ID: 191550

Article Last Modified on 4/22/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q191550



SYMPTOMS
The DateTimePicker will not scroll the full text in the visible combo area if you use a Custom Format that contains more characters than the width of the visible combo area.



CAUSE
The focus only moves to parts of the actual date and not the text that is just part of the formatting.



RESOLUTION
Make the Width property large enough to display the entire formatted date.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
You will not be able to scroll the text in a DateTimePicker control if you use a custom format that has more characters then the control is able to display.

Steps to Reproduce Behavior
 Start a new Standard EXE project. Form1 is created by default. From the Project menu, choose Components and select "Microsoft Windows Common Controls-2 6.0" and then click the OK button. Add a DTPicker control, named DTPicker1, to Form1.  Set the following properties on DTPicker1: CustomFormat = 'Welcome to ' dddd', the ' dd'th of 'MMMM Format = 3 - dtpCustom Width = 2300  Save and run the project.</li> Select the month at the very end of the combo area.</li> Use the arrow keys to try and get the "Welcome to" to display in the combo area. Note that the focus moves from the month to the day and weekday, but not to the text, so that "Welcome to" never displays.</li></ol>

Additional query words: kbCtrl kbVBp kbVBp600bug

Keywords: kbbug kbctrl kbpending KB191550

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.