BUG: SSCommand Control Generates Application ErrorLast reviewed: December 15, 1995Article ID: Q141091 |
The information in this article applies to:
SYMPTOMSAn application error or general protection (GP) fault ending the Visual Basic design environment occurs when the Picture property of a SSCommand (3D command button) control is set to the default property of a PictureBox control located on another form, and the running application is stopped using only the End button on the Toolbar. The bug occurs if you have a Visual Basic application containing one form with a SSCommand control and another form with a PictureBox control. The Picture property of the SSCommand control is set to the default property of the PictureBox control. The PictureBox control's default property is its Picture property. When you run the application in the Visual Basic design environment and you click the End button on the Toolbar to stop the application, an error message displays and Visual Basic ends. Note that the Close button on the form with the SSCommand control is not clicked.
WORKAROUNDThe workaround is to set the Picture property of the SSCommand control by explicitly specifying the Picture property of the PictureBox control. Do NOT use the default property of the PictureBox control to set the Picture property of the SSCommand control. An example of this is shown below in the code in the More Information section.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe following shows you how to reproduce the bug:
Steps to Reproduce Bug
|
Additional reference words: 4.0 vb4win vb4all GPF buglist4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |