BUG: SSCommand Control Generates Application Error
Symptoms
An application error or general protection (GP) fault ending the VisualBasic design environment occurs when the Picture property of a SSCommand(3D command button) control is set to the default property of a PictureBoxcontrol located on another form, and the running application is stoppedusing only the End button on the Toolbar.
The bug occurs if you have a Visual Basic application containing one formwith a SSCommand control and another form with a PictureBox control. ThePicture property of the SSCommand control is set to the default property ofthe PictureBox control. The PictureBox control’s default property is itsPicture property.
When you run the application in the Visual Basic design environment and youclick the End button on the Toolbar to stop the application, an errormessage displays and Visual Basic ends. Note that the Close button on theform with the SSCommand control is not clicked.
Resolution
The workaround is to set the Picture property of the SSCommand control byexplicitly specifying the Picture property of the PictureBox control. DoNOT use the default property of the PictureBox control to set the Pictureproperty of the SSCommand control. An example of this is shown below in thecode in the More Information section.
