.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!



Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

combobox vs toolstripcombobox in C#.net

Posted By: Narayanan     Posted Date: February 21, 2012    Points:5   Category :C#
Hi,
Difference between combobox vs toolstripcombobox ?I want to add a DrawItem event in the Toolstripcombobox in C#.net? I want to use Tooltip in Toolstripcombobox in C#.net? Please Help me.It is an windows Application(not develop in WPF)

Responses
Author: Mahesh             
Posted Date: March 01, 2012     Points: 20   

Hi
There is no difference between two they are fundamentally the same control,
just one is attached to a ToolStrip container and the other is attached to a Form Container.

For using tooltip use following code,

create the toolstripbutton items i added an event handler to its hover event

private sub SomeCodeSnippet()
Me.tooltipMain.ShowAlways = True
Dim tsi As New ToolStripButton(String.Empty, myImage)
tsi.ToolTipText = "my tool tip text"
toolstripMain.Add(tsi)
AddHandler tsi.MouseHover, AddressOf ToolStripItem_MouseHover
end sub


then the event handler:

Private Sub ToolStripItem_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs)
If TypeOf sender Is ToolStripButton Then
Me.tooltipMain.SetToolTip(Me.toolstripMain, CType(sender, ToolStripButton).ToolTipText)
End If
End Sub

hope this helps.....

Regards
Mahesh

Author: Narayanan             
Posted Date: August 28, 2012     Points: 20   

Hi ,
Thanks

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Narayanan             
Posted Date: August 28, 2012     Points: 20   

Hi ,
Thanks

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend