I have a very simple control in VB 2010. It has a label and a text box. I also added a ToolTip control that is attached to the bottom of the screen. I then setup a property so I can set the tool tip adter I drop the new control on a form This works for the form that the text and label are placed on, but the text and the label never inherit the tool tip. I tried to assign them but that doesnt work as the tooltop is not available on the code side. the property page does have a place for the tooltup but I cant get to it from the code.
any ideas?
Public Property AToolTip() As UltraToolTipInfo
Get
AToolTip = Me.ToolTipT.GetUltraToolTip(Me)
End Get
Set(ByVal value As UltraToolTipInfo)
Me.ToolTipT.SetUltraToolTip(Me, value)
End Set
End Property
Hi,
I'm afraid I don't understand your question.
mworsnop said:This works for the form that the text and label are placed on, but the text and the label never inherit the tool tip.
You are saying here that it works and also that it does not work, and I am not clear on the distinction you are making. When does this work and when does it not work?
Are you trying to apply a tooltip to the TextBox, the the Label, or the entire control?
Sorry I wasnt very clear; Using the set property I was able to set the ToolTip property for the main container. In this case its a form that has a label and a textbox on the form. So when I place the new control on a new form, I am able to set the AToolTip using the property as I showed above.
However the textbox and the label do not have a tooltip attached to them. So when I run the mouse over my control the tooltip only pops up when I am on the form part of the control.
I would like to be able to attach the same tooltip using the code above to the label and the textbox so when the mouse moves over any part of the control the tooltip will be triggered
thanks for the help!