Results 1 to 4 of 4

Thread: Generic toop tip. Need for when clicking on any control!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Location
    England
    Posts
    64

    Arrow Generic toop tip. Need for when clicking on any control!

    Got a set of Controls on a form.
    Need to show a tool tip against the Cursor ie floating next to it when u cllick on a control :-)

    Is there a generic tooptip thing that i can set the value on and pop up next to the cursor every time i click on a control??

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    45

    Re: Generic toop tip. Need for when clicking on any control!

    Well, in the toolbox, there is a tooltip control. Put that on your form, then every control on your form will be able to have a tooltip. Click on the control and scroll through the properties and you should see the tooltip property. Also if you want, you can put it in your onClick events if you only want to display it when you click on a control.

    To set the tooltip programatically:

    tooltip1.text = "This is your text"
    Last edited by jaslar18; Jul 11th, 2007 at 06:32 AM.

  3. #3
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: Generic toop tip. Need for when clicking on any control!

    You could loop through all of the controls on your form and set their ToolTips:

    vb.net Code:
    1. ' Set all the ToolTips.
    2.         For Each ctl As Control In Me.Controls
    3.             Dim tt As New ToolTip()
    4.             tt.SetToolTip(ctl, "Default caption")
    5.         Next ctl

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Location
    England
    Posts
    64

    Re: Generic toop tip. Need for when clicking on any control!

    ok heres what i want to do.
    I have a list view with loads of items in the list.
    With mousedown i highlight a selection from the list, whilst im highlighting ie on mouse down i want a tool tip to appear showing my current range!
    as i mousedown across more items in the list ie increasing my selection i want the tool tip to update with range selected ie
    tooltip.text = "Selected from blah to blah"

    The tool tip must remain on the screen whilst im selecting ie mousedown-ing on the list to increase my selectiong.
    any ideas

    thanks
    ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width