Multiline tooltip in windows form

Posted by hareeshkumarkr-16190 under VB.NET on 8/27/2013 | Points: 10 | Views : 1787 | Status : [Member] | Replies : 2
hi ,

i am loading data dynamically to controls when user/client mouse overon it data should be display in multiline tooltip.


Regards,
Harish




Responses

Posted by: Bandi on: 8/27/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Use Environment.NewLine
-- Example1
Me.ToolTipProviderCtl.SetToolTip(Me.Button1, "this is" & Environment.NewLine & _

"a multiline" & environment.NewLine & "tooltip!")



-- Example2
' This example assumes that the Form_Load event handling method
' is connected to the Load event of the form.
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

http://www.codeproject.com/Articles/885/How-To-Add-ToolTips-To-Controls-On-A-Windows-Form

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

hareeshkumarkr-16190, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satyapriyanayak on: 8/27/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
http://www.codeproject.com/Articles/98967/A-ToolTip-with-Title-Multiline-Contents-and-Image
http://www.java2s.com/Code/CSharp/GUI-Windows-Form/TooltipsDemo.htm

If this post helps you mark it as answer
Thanks

hareeshkumarkr-16190, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response