I need to display a series of numbers with some special symbols in a text box, which can show some more information
Value: 45 *, 35,21 21,34
For example, I think this looks like a text box:Value: 45 *, 35,21 21,34
And when the user transfers the mouse over the '*' symbol, a small window will appear with some text.
Is this possible? I'm a bit confused how to do this ... In fact, anything like a hyperlink in the text can be helpful ..
You can use the GetCharFromPosition function to define the character ending on the mouse:
tooltip tt = new tooltip (); Four past rip = ''; Zero text box 1_MouseMove (object sender, mouse events archives e) {char c = textBox1.GetCharFromPosition (e. Location); If (C. Ecloss ('*')) (if (! C. E.L.L. (Last Chir)) {Final C = C; Tt.Show ("This is something special", this.TtextBox1, new point (e.Location .X + 20, e.Location.Y + 20), 2000);}} Else {lastChar = ''; tt.Hide (this.textBox1);}}
Comments
Post a Comment