Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
How to pass tooltip to all objects
posted

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

Parents
  • 469350
    Offline posted

    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?

Reply Children