BUG: SSCommand Control Generates Application Error (141091)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q141091 SYMPTOMS
An 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.
RESOLUTION
The 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.
STATUS
Microsoft 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.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbBug kbCtrl kbpending KB141091 |
---|
|