Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ToolTipText inside of ActiveX

Status
Not open for further replies.

nbjrbr

Programmer
Feb 28, 2007
5
US
Hi All,

I've created an ActiveX with a MSFlexGrid inside. I would like to transfer the value in the property ToolTipText (from the control, putted there as default for Visual Basic 6), to the MSFlexGrid ToolTipText property.
I've tried to do like the code below, but doesn't work. How can I do that ???

In UserControl_ReadProperties

MSFlexGrid1.ToolTipText = PropBag.ReadProperty("ToolTipText", "")

In UserControl_WriteProperties
Call PropBag.WriteProperty("ToolTipText", MSFlexGrid1.ToolTipText, "")

Creation of the Properties:

Public Property Get ToolTipText() As String
ToolTipText = MSFlexGrid1.ToolTipText
End Property
Public Property Let ToolTipText(ByVal New_Text As String)
MSFlexGrid1.ToolTipText = New_Text
PropertyChanged "ToolTipText"
End Property


Thanks

Nilson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top