Microsoft KB Archive/190030

= BUG: FillStyle Pattern Not Visible for Shape on UserControl =

Article ID: 190030

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q190030



SYMPTOMS
When you have a UserControl with a transparent BackStyle that hosts a Shape control, the FillStyle of the Shape is set to a value other than Transparent or Solid. When you place the UserControl on a Form, you do not see the FillStyle specified for the Shape Control.



RESOLUTION
To work around this problem, set the Windowless property of the UserControl to True.



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.



Steps to Reproduce Behavior
 Create a project group consisting of a Standard EXE project and a UserControl project, by following these steps:

 Create a Standard EXE project. Form1 is created by default. Choose Add Project from the File menu and add an ActiveX Control project. UserControl1 is created by default.  Set the UserControl's Backstyle property to 0 (Transparent). Place a shape on the UserControl and set its FillStyle property to something other than 0 (Solid) or 1 (Transparent).</li> Close the UserControl Window and place the UserControl on Form1. Note that the FillStyle property you selected for the Shape does not appear.</li> Open the UserControl design Window, set the Windowless property to True and close the UserControl Window. Note that the FillStyle appears properly.</li></ol>

Additional query words: kbDSupport kbDSD kbVBp kbVBp600bug kbCtrlCreate

Keywords: kbbug KB190030

-

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

© Microsoft Corporation. All rights reserved.