|
-
Jun 22nd, 2006, 01:20 PM
#1
Thread Starter
Frenzied Member
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
-
Jun 22nd, 2006, 01:33 PM
#2
Lively Member
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.
-
Jun 22nd, 2006, 01:52 PM
#3
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|