Tool tips in statusstrip

I start working with VB 2005 EE. But I find one trouble.I was put StatusStrip control on design panel and ShowItemTooltips property switch on true. Then I put the Tooltip control on design panel and on the form add some controls. I fill Tooltip on ToolTip1 property with text. I see hint inside popup baloon, but not in the Statusstrip control. What i do wrong

Answer this question

Tool tips in statusstrip

  • Mathias Raacke

    What I am trying to do is display a tool tip in a bubble when the user places the cursor over a particular label on the status strip.

    I set the status strip show tool tip property to true and then set the label tool tip text to the text I wanted. I am finding that the tool tip is blinking very quickly when I place the cursor over the label. It should just stay on steady.

    Any answers

    Thank you



  • Rafael Salas

    I fill event handlers for MouseMove and Mouseleave, but this solution isn't elegant. In Delphi (from the first version) you must write only one procedure and access this procedure to event handler Application.OnHint. This is only 4 lines of code for all application. Why don't work StatusStrip's property ShowItemToolTips


  • Reen

    From Slovenian MS support i recive this solution: Private Sub ToolTip_Popup(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PopupEventArgs) Handles ToolTip2.Popup, ToolTip1.Popup ToolStripStatusLabel1.Text = CType(sender, ToolTip).GetToolTip(e.AssociatedControl) End SubIt's work, like youre solution.
  • Aziz Ahmedabadwala

    Thanks for answer! I'll try with your solution and report about results...


  • JDGingras

    Here's what you could do:

    Put a tooltip control on your form.

    Add the Tooltips for each control you want tootips, but also add them to the 'tag' property of the control.

    In the Popup event of the tooltip, get the AssociatedControl (passed as an argument), examine the 'tag' of that control, and if it has tag data of the correct type, display it in your status strip.

    Then set Cancel to True in the same event: this will stop the actual tooltip from showing (if you want).

    It's all a bit of a hack, but it works great.



  • unreal-xan

    Hello!You must set ToolTip property AutomaticDelay.
  • Nigel Findlater

    Okay, Here's a snippet of code from a test program (just one of many):

    VB Express wrote:

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    'ToolTip1.IsBalloon = True
    ToolTip1.AutomaticDelay = 0
    ToolTip1.UseAnimation = False
    ToolTip1.UseFading = False ' Does it fade in
    ToolTip1.InitialDelay = 1 ' Time before the initial Tolltip will show
    ToolTip1.AutoPopDelay = 10000 ' How long the TOOLTIP remains visible
    ToolTip1.ReshowDelay = 50 ' How much time passes before the next tooltip will show
    ToolTip1.ToolTipIcon = ToolTipIcon.Info ' Set an ICON if required
    ToolTip1.ToolTipTitle = "Tooltips" ' Title next to the icon
    '
    ToolTip1.SetToolTip(Button1, "Nothing To Say Here: look at the tag")
    ToolTip1.SetToolTip(CheckBox1, "Nothing To Say Here: look at the tag," & Environment.NewLine & "or else.")
    '
    Button1.Tag = "Push Me To do Something"
    CheckBox1.Tag = "Check Me out"
    ' this will pop up a second annoying tooltip
    ToolTip2.SetToolTip(Button1, "Second Tool Tip")
    End Sub

    Private Sub ToolTip1_Popup(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PopupEventArgs) Handles ToolTip1.Popup
    Debug.WriteLine(e.AssociatedControl.Name)
    'ToDo: Need to check that the tag is actually a STRING type
    ToolStripStatusLabel1.Text = e.AssociatedControl.Tag.ToString
    'e.ToolTipSize = New Size(0, 0) ' This doesn't work too well
    e.Cancel = True
    End Sub



  • Christian van der Ree

    I try to do with AcssocietedControl, but i can't write this code. I'm new in VB...Please, write me example of code
  • Hua Wang - MSFT

    Thanks. I'll do this and send you results.
  • Perry_SSIS

    Thanks SJWhiteley!I'll be try do this. I'll be "report" about this.
  • theguy204

    As far as i can see, the ToolTip will be displayed in either a Balloon or a PopUp "window" (depending on the "isBalloon" property). If you would like to use the StatusStrip control to display a certain "ToolTip" then you could create a ToolStripStatusLabel on the StatusStrip. With either a MouseMove or a specific command, you can fill the .Text property of the ToolStripStatusLabel to display the "ToolTip" you wanted to show in the first place.

    Hopefully this will help.


  • Tool tips in statusstrip