Associate a Control - StatusBar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thesti
    New Member
    • Nov 2007
    • 144

    Associate a Control - StatusBar

    hi,

    how to, for some controls in a form, when a user bring her mouse on the control, the message in ToolStripStatus Label changes to something like telling the function of the control.

    should i use the event MouseHover/MouseEnter and MouseLeave for each control to set the Text of ToolStripStatus Label dynamically. i'm not sure since we can just set the ContextMenu property of a control to associate the control to a contextMenuStri p object.


    thanks
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    I would use the mouse hover event for whenever the mouse is over the control, and the mouse leave event when the cursor/mouse leaves the control and could you clarify your question about the contextmenustri p property, I am not getting what you are trying to ask or say about it.

    joedeene

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      Take at look at the ToolTip component. This doesn't change text in the status bar, it provides a box or bubble to pop up at the cursor just above the control you are hovering over.

      Either google or Visual Studio's built-in help should get you going. Just look for "ToolTip"

      Comment

      • thesti
        New Member
        • Nov 2007
        • 144

        #4
        hi,

        thanks for the reply, i'll try it.
        (sorry for the bad problem description, english is not my native language)

        Comment

        Working...