Tab Control tooltip
Hey I am using Visual C# 2005,
How do you make it so that if you put your mouse over a tab on a tab control then it will show a tooltip like this:
Title of site
URL of site
So a 2 lined tooltip?
Thanks :)
Hey I am using Visual C# 2005,
How do you make it so that if you put your mouse over a tab on a tab control then it will show a tooltip like this:
Title of site
URL of site
So a 2 lined tooltip?
Thanks :)
Hi progames25,
First set the tabcontrol.ShowToolTips to true.
Second set the tabpage1.ToolTipText = Title_of_Site + "\n" + URL_of_Site.
Works fine here.
Ok I set it to true...but is there another way to do the tab page thing?
because if it is another tab page other then the first tabpage..then it wont show it...and it is a user create tab control...my way of saying the users add the tab pages...
Thanks :)
Strange.
I make a new project and add a button and a tabcontrol. I don't see anything wrong with the code below.
private void button1_Click(object sender, EventArgs e) { tabControl1.ShowToolTips = true; tabPage1.ToolTipText = "Tab 1"; tabPage2.ToolTipText = "Tab 2"; TabPage tp = new TabPage("Added"); tp.ToolTipText = "Tab 3"; tabControl1.Controls.Add(tp); } |
Still, it does not show the tooltip when my mouse is over the tab...
this is what I have for tabpage 1:
this.tabControl1.ShowToolTips = true;tabPage1.ToolTipText = (thiswebpage.Document.Title + thiswebpage.Document.Url.ToString());