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

ID: Q191550


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 : kbCtrl kbVBp kbVBp600bug kbGrpVB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: January 5, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.