I'm using VB.Net 2010 (Professional)
I have a row of buttons that allow the user to add notes at various places in my app. The user clicks the button, a dialog box opens allowing the user to type in the note after which he'll click the OK button, etc.
Rather than have the user click the button to view an existing note, I was putting the text of the note in the button's tooltip. However I discovered if the user changes the note text, but the original tooltip and the revised tooltip appear during a subsequent hover.
So my question is, how do I change a tooltip's text, rather than create a new tooltip every time the user edits the note text?
My code (sort of):
Private Sub btnNote1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNote1.Click
Dim ttMain As New ToolTip()
ttMain.AutoPopDelay = 5000
ttMain.InitialDelay = 1000
ttMain.ReshowDelay = 500
ttMain.ShowAlways = True
dlgNote.Note = m_Notes(1)
Select Case dlgNote.ShowDialog()
mm_Notes(1) = dlgNote.Note
m_Notes(1) = m_ObsNotes.Plumb(nIndex)
m_Notes(1) = ""