|
-
Apr 6th, 2002, 02:29 AM
#1
ActiveX Control Property
I need to make a property to my ActiveX control that is like the Text propertry for a TextBox (having the Multiline set to True)
How do I do it ?
Thanks...
-
Apr 6th, 2002, 06:17 AM
#2
VB Code:
'In general declarations
Private m_strText As String
Public Property Text() As String
Text = m_strText
End Property
Public Property Text(ByVal strText As String)
m_strText = strText
Text1.Text = strText
PropertyChanged "Text"
End Property
Private Sub UserControl_WriteProperties(PropBag As .....)
PropBag.WriteProperty "Text", m_strText, vbNullString
End Sub
Private Sub UserControl_ReadProperties(PropBag As ....)
Text = PropBag.ReadProperty("Text", vbNullString)
End Sub
-
Apr 6th, 2002, 01:12 PM
#3
... when Multiline is set to True...
-
Apr 6th, 2002, 02:24 PM
#4
You might want to run the ActiveX Wizard, and see if it will come up with the solution for you.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
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
|