Microsoft KB Archive/196024

= BUG: Microsoft Date Time Picker Control Causes Exception Error =

Article ID: 196024

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q196024



SYMPTOMS
If you have a Microsoft Date and Time ActiveX control instantiated within a ToolBar and the focus is set to the Date and Time control, some of the ALT key combinations cause an exception error, and Visual FoxPro shuts down.



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



Steps to Reproduce Behavior
 Create and run a program with the following code:

oTBar=CREATEOBJECT("mytoolbar") oTBar.Show READ EVENTS

DEFINE CLASS mytoolbar AS toolbar

Caption = "Toolbar1" Height = 109 Left = 0 Top = 0 Width = 110 Name = "mytoolbar"

ADD OBJECT olecontrol1 AS olecontrol WITH ; OLECLASS="MSComCtl2.DTPicker.2",; Top = 5, ; Left = 5, ; Height = 100, ; Width = 100, ; Name = "Olecontrol1"

ADD OBJECT cmdbtn1 AS COMMANDBUTTON procedure cmdbtn1.click clear events endproc

ENDDEFINE

 When the ToolBar displays, click inside the Date Time Picker Control. You may want to either highlight a date value or click the DOWN ARROW key. Using an ALT key combination like ALT+Z, ALT+C, or ALT+U and so on, causes the following exception error:

Fatal Error: Exception code-C0000005 Called from ...........

Clicking OK, the only option, shuts down Visual FoxPro.

NOTE: Any ALT key combination other than the Visual FoxPro System menu Hot Keys (ALT+F, ALT+E, ALT+V, ALT+T, ALT+P, ALT+W, ALT+H) causes the exception error.

Keywords: kbbug kbctrl kbpending kbcode KB196024

-

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

© Microsoft Corporation. All rights reserved.