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??
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"
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:
' Set all the ToolTips.
For Each ctl As Control In Me.Controls
Dim tt As New ToolTip()
tt.SetToolTip(ctl, "Default caption")
Next ctl
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
:afrog:
thanks
;-)