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...
Printable View
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...
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
... when Multiline is set to True...
You might want to run the ActiveX Wizard, and see if it will come up with the solution for you.
:)