How to get a hint in VB.net?

I found this tooltip that appears in MS Word 2010 when someone enters a number of copies above 32767, I would like to know how (and if) you can implement a tooltip, for example, in the form of a VB.net application window.

tooltip screenshot MSWord 2010

+3
source share
2 answers

The built-in ToolTip component creates a tooltip that looks pretty close. Set the IsBalloon property to True. Getting it just like Word is impractical, the component provides no way to override TOOLINFO.uFlags so you can specify TTF_CENTERTIP ..

enter image description here

+6
source

, , . ... , , - .

:

Private Sub TextBox1_TextChanged(sender As System.Object, e As System.EventArgs) Handles      TextBox1.TextChanged

If Val(TextBox1.Text) > 100 Then
        ToolTip1.Active = True
        ToolTip1.Show("Value is to Large", sender, New Drawing.Point(0, sender.Height - 50))
    Else
        ToolTip1.Active = False
    End If

End Sub

... !

+2

All Articles