Results 1 to 4 of 4

Thread: Problem with ActiveX Transparencies

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Posts
    299

    Question Problem with ActiveX Transparencies

    If I set the BackStyle of my UserControl to 0 - Transparent, and then have labels on my usercontrol that are also set to Transparent, then i can't see the Caption of my Labels . Is this a known problem, or is there something i am missing to make it so i can see the captions?
    The forecolor isn't the same as the backcolor, just in case you were wondering.
    What am i doing wrong here?
    BW

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Hi there But_Why, I'm sorry I cant offer u a solution to u'r problem, I have however found a description of it in MSDN:

    BUG: Transparent Label on Transparent Control Does Not Display
    ID: Q179052


    --------------------------------------------------------------------------------
    The information in this article applies to:

    Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, versions 5.0, 6.0

    --------------------------------------------------------------------------------


    SYMPTOMS
    The Label text on a UserControl does not appear or appears "jagged" when the UserControl is placed in a container.



    CAUSE
    This problem occurs when the BackStyle property of both the Label control and the UserControl are set to Transparent. If the Font property of the Label control is set to a TrueType font, the Label text appears "jagged." If the Font property of the Label control is set to a non-TrueType font, the Label text does not appear at all.



    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.



    MORE INFORMATION

    Steps to Reproduce Behavior
    Start a new ActiveX control project in Visual Basic. UserControl1 is created by default.


    Set the BackStyle property of UserControl1 to 0-Transparent.


    Add a Label control to UserControl1. Set the BackStyle property of the Label control to 0-Transparent. Enter some text in the Caption property, such as "Hello World." Close the UserControl1 control.


    Add a Standard EXE project to the project by completing the following steps:


    From the File menu, click Add Project. The Add Project dialog box appears.


    From the New Tab, click Standard EXE.


    Click Open to close the dialog box. Form1 is created by default.





    Add the UserControl you created in the previous steps to Form1. Note that the caption in the Label control does not appear.



    Additional query words: ocx user kbcontrol kbactivex control kbdsi kbDSupport kbVBp500
    kbVBp600 kbVBp

    Keywords :
    Version :
    Platform : WINDOWS
    Issue type : kbbug
    Technology :


    Last Reviewed: June 22, 1999
    © 2000 Microsoft Corporation. All rights reserved. Terms of Use.




    --------------------------------------------------------------------------------
    Send feedback to MSDN.Look here for MSDN Online resources.
    seems like the problem u'r having .
    -= a peet post =-

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Posts
    299

    Thanks Peet

    I had just found that too

    http://support.microsoft.com/support.../Q179/0/52.ASP

    Bugger... well that sucks. hmmm back to the drawing board on that one i reckon.
    BW

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629


    I found it on the MSDN CD so i had to post the damn thing

    well a good thing no trees were harmed
    -= a peet post =-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width