Results 1 to 3 of 3

Thread: ActiveX Control: Text Not Showing..

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    ActiveX Control: Text Not Showing..

    Hello,

    Im stuck with a problem here. I basically did my own activex control and added a label. I created the properties for BackStyle, but now when i create the object on the form and toggle between the BackStyles, when set to Transparant, the text on the caption disappears..!!

    When set back to Opaque, it appears..!!

    whats going on..?

    Thanx

  2. #2
    Lively Member
    Join Date
    Jun 2005
    Posts
    94

    Re: ActiveX Control: Text Not Showing..

    Can you post your control code here? Don't worry, your code will not be stolen; all the programmers know (and follow) ethics on this forum! If you post your code, then I will be in a better positon to help you.

  3. #3

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: ActiveX Control: Text Not Showing..

    There isnt much to see basically, but here is the procedure for this property..

    ------------
    Public Property Get BackStyle() As Style
    BackStyle = m_BackStyle
    End Property

    Public Property Let BackStyle(ByVal NewStyle As Style)
    m_BackStyle = NewStyle
    UserControl.BackStyle = m_BackStyle
    Label1.BackStyle = m_BackStyle
    UserControl.BackColor = BackColor
    Label1.BackColor = BackColor
    PropertyChanged "BackStyle"
    End Property


    ----------------
    Its not a problem with the coding basically.. its just something to do with VB and the way it handles this.

    I think some masking colours..?? bcos the activex backstyle is transparant, but when you set the label's backstyle to be transparant as well, it disappears..

    Although at design view (activex ide) i can see it, but when creating the object on a form, thats when this happens.

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