Me.ToolTipProviderCtl.SetToolTip(Me.Button1, "this is" & Environment.NewLine & _ "a multiline" & environment.NewLine & "tooltip!")
Private Sub Form1_Load(sender As Object, e As System.EventArgs) Handles MyBase.Load ' Create the ToolTip and associate with the Form container. Dim toolTip1 As New ToolTip() ' Set up the delays for the ToolTip. toolTip1.AutoPopDelay = 5000 toolTip1.InitialDelay = 1000 toolTip1.ReshowDelay = 500 ' Force the ToolTip text to be displayed whether or not the form is active. toolTip1.ShowAlways = True ' Set up the ToolTip text for the Button and Checkbox. toolTip1.SetToolTip(Me.button1, "My button1" & Environment.NewLine & "multi line tool tip!") toolTip1.SetToolTip(Me.checkBox1, "My checkBox1")End Sub
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
Login to post response