473,320 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ToolTips

Hi All,

Does anyone know if and how can someone add tooltips for controls contained
in an UserControl ?

I see that even if the control has this property, it is not working. The
usercontrol is somehow blocking the appearence of the tooltip.

And, is there any way I can show the tooltip, even if the control is
disabled?

Any advice is appreciated! Thanks in advance!
Nov 16 '05 #1
2 3234
Hi,

If you set tooltip to any UserControl, then it will be
displayed only over that control's background.

To make tooltip display all over subcontrols of your usercontrol
then you can do it by a simple trick:

/// <summary>
/// Set tooltip's caption to all child controls of main control.
/// </summary>
/// <param name="toolTip">ToolTip component.</param>
/// <param name="control">Main control.</param>
/// <param name="caption">A caption to set.</param>
public static void SetToolTipByRecurence(ToolTip toolTip
, Control control
, string caption) {
foreach(Control childControl in control.Controls) {
toolTip.SetToolTip(childControl
, caption);
SetToolTipByRecurence(toolTip
, childControl
, caption);
}
}

But i cannot find a way to display tooltip over
disabled control :(

Cheers!

Marcin
Hi All,

Does anyone know if and how can someone add tooltips for controls contained
in an UserControl ?

I see that even if the control has this property, it is not working. The
usercontrol is somehow blocking the appearence of the tooltip.

And, is there any way I can show the tooltip, even if the control is
disabled?

Any advice is appreciated! Thanks in advance!

Nov 16 '05 #2
Thanks a lot, that solved my first dilemma, now I'm trying to make the
tooltips show even if the control is disabled.

I apreciate any advice you may have.

Thanks in advance.

"Marcin Grzêbski" <mg*******@taxussi.no.com.spam.pl> wrote in message
news:cc**********@nemesis.news.tpi.pl...
Hi,

If you set tooltip to any UserControl, then it will be
displayed only over that control's background.

To make tooltip display all over subcontrols of your usercontrol
then you can do it by a simple trick:

/// <summary>
/// Set tooltip's caption to all child controls of main control.
/// </summary>
/// <param name="toolTip">ToolTip component.</param>
/// <param name="control">Main control.</param>
/// <param name="caption">A caption to set.</param>
public static void SetToolTipByRecurence(ToolTip toolTip
, Control control
, string caption) {
foreach(Control childControl in control.Controls) {
toolTip.SetToolTip(childControl
, caption);
SetToolTipByRecurence(toolTip
, childControl
, caption);
}
}

But i cannot find a way to display tooltip over
disabled control :(

Cheers!

Marcin
Hi All,

Does anyone know if and how can someone add tooltips for controls contained in an UserControl ?

I see that even if the control has this property, it is not working. The
usercontrol is somehow blocking the appearence of the tooltip.

And, is there any way I can show the tooltip, even if the control is
disabled?

Any advice is appreciated! Thanks in advance!

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: shraddha | last post by:
Hi I want to implement dynamic interactive tooltips in java so that the user can expand / collapse them. Also, if there are hyperlinks in the tooltip text, the user should be able to follow up...
0
by: Bonna | last post by:
Hi, I've set up a helpsystem for my application using html help 1.x and the dotnet HelpProvider object. It's annoying that that you have to fill in the tooltips yourself (for providing help on...
1
by: David Ei | last post by:
I'm working on a C# Windows Forms application that is leaking memory. I've been using the SciTech NetMem Profiler 2 (A really great tool, BTW) to track down leaks. I've found one related to...
3
by: Wayne | last post by:
Is anybody aware of other software conflicting with Access and disabling the tool tips. I've had this problem in the past and now have it again after rebuilding my desktop and notebook. Both fail...
1
by: Wayne Aprato | last post by:
Tooltips in Access have not worked on my machine for a long time despite several reinstalls of the operating system and applications at fairly regular intervals. I have finally pinned down the...
4
by: Cesario | last post by:
I'm trying to display formatted multi-line text in tooltips. It seems that the newline character works fine whereas the 'tab' character is causing problems and can't display properly. More...
4
by: Jeff Beem | last post by:
I have a class that inherits from TreeView. The treeview has tooltips for the nodes but they're showing up behind the form. Has anyone seen this? Are there any known fixes? Thanks in advance,...
21
by: PlainDave | last post by:
Hi, Is there a way to make windows tooltips stay up longer than the default 5 seconds using CSS in a web page? I'd prefer to have it stay visible as long as the mouse is over the "whatever." The...
1
by: Robert Smith | last post by:
Hello, I have a Tree that contains tooltips, however when I right click on a node of the tree the context menu covers up the tooltips and it looks rather unprofessional. I wish to hide the...
1
by: TyBreaker | last post by:
I have a simple form with a toolstrip on it and some toolstrip buttons. Tooltips work fine. But then I use the ShAppBarMessage API call to register the form as an Application Desktop Toolbar. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.