Text, when mouse over button!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prebeni
    New Member
    • Nov 2007
    • 4

    Text, when mouse over button!!!

    Hi
    I'm new into vb.net - so please forgive me :-)
    It's in a windows form - in visual basic 2005.
    How do I make a small text be visual when the user move the mouse over a button?
    In html you can do it with pictures like: <img src="pil.jpg" alt="some text" />

    Best Regards
    Preben, Denmark
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    This can be done in simple javascript .
    put one <div> tag make that visible on the on mouse over event.

    Comment

    • karthickbabu
      New Member
      • Sep 2007
      • 33

      #3
      Hi

      Create a ToolTip Text while you mouse over your button control. You write this code in Button_MouseHov er Event. Try this code as below

      [CODE=vbnet]Dim tooltip As New ToolTip
      tooltip.IsBallo on = True
      tooltip.UseAnim ation = True
      tooltip.ToolTip Title = "Title"
      tooltip.SetTool Tip(Button1, "Tool Tip Message ")[/CODE]


      Hope it helps

      Originally posted by prebeni
      Hi
      I'm new into vb.net - so please forgive me :-)
      It's in a windows form - in visual basic 2005.
      How do I make a small text be visual when the user move the mouse over a button?
      In html you can do it with pictures like: <img src="pil.jpg" alt="some text" />

      Best Regards
      Preben, Denmark
      Last edited by Shashi Sadasivan; Nov 26 '07, 12:46 PM. Reason: adding code tags

      Comment

      • prebeni
        New Member
        • Nov 2007
        • 4

        #4
        Tooltip!!!

        Thank's - just what I needed :-)

        Preben

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          You *can* add a ToolTip component to your form from the designer.
          THEN every object you select will have a new property on it's page called like "ToolTip (on tooltip1):" where you can set the tooltip text to be displayed.
          Instead of creating/destroying a new one each time.

          Comment

          • prebeni
            New Member
            • Nov 2007
            • 4

            #6
            Even better :-)

            Preben, Denmark

            Originally posted by Plater
            You *can* add a ToolTip component to your form from the designer.
            THEN every object you select will have a new property on it's page called like "ToolTip (on tooltip1):" where you can set the tooltip text to be displayed.
            Instead of creating/destroying a new one each time.

            Comment

            Working...