-
May 29th, 2024, 02:53 PM
#1
Thread Starter
Fanatic Member
Easy way to put tooltip text above a rtb, or any control, works well
In my case, did not want it blocking the view of another text informational control, which it did as it displayed below the rtb control.
Tooltext() is a string arr of 18 elements, or just quote some text.
_rtxt007_16 is a rtb name
New Point position is relative to the control, the tooltip text appears there.
So this one line's New Point positioning can work with all controls.
A negative number moves it above the control.
2000 is 2 seconds display time
Code:
Private Tooltext(17) As String 'string array is 0 to 17, 18 elements, I had 18 controls, they need differing tooltip text
Dim Tooltip1 As New ToolTip
'you can also set the time for when it appears like this, 10 milliseconds
Tooltip1.InitialDelay = 10
'put this like when you enter the rtb, etc... or when you want to see a tooltip text appear.
Tooltip1.Show(Tooltext(16), _rtxt007_16, New Point(8, -25), 2000) ' right of control, above control, time in millisecs
Last edited by sdowney1; Jul 13th, 2024 at 10:33 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|