DOCUMENT:Q191550 19-AUG-1998 [vbwin] TITLE :BUG: DateTimePicker Won't Scroll Full Text in Visible Combo Area PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:6.0 OPER/SYS:WINDOWS KEYWORDS:kbVBp kbCtrl kbVBp600bug ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0 --------------------------------------------------------------------- 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. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. 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 --------------------------- 1. Start a new Standard EXE project. Form1 is created by default. 2. From the Project menu, choose Components and select "Microsoft Windows Common Controls-2 6.0" and then click the OK button. 3. Add a DTPicker control, named DTPicker1, to Form1. 4. Set the following properties on DTPicker1: CustomFormat = 'Welcome to ' dddd', the ' dd'th of 'MMMM Format = 3 - dtpCustom Width = 2300 5. Save and run the project. 6. Select the month at the very end of the combo area. 7. 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. Additional query words: kbCtrl kbVBp kbVBp600bug ====================================================================== Keywords : kbVBp kbCtrl kbVBp600bug Version : WINDOWS:6.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1998.