473,320 Members | 2,161 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.

User Defined ToolTips

I have a user that wants to define his own tooltips hints for any
edit/combobox in the program. It is a multiuser window form application, so
the hints are for the other users. The backend is a sql server database.
I'm looking for ideas of how to readily identify the edit/combobox and store
the hint.

Mel

Aug 11 '08 #1
2 1531
On Aug 11, 4:20*pm, "Mel Weaver" <MelRemoveS...@Insdirect.comwrote:
I have a user that wants to define his own tooltips hints for any
edit/combobox in the program. *It is a multiuser window form application, so
the hints are for the other users. *The backend is a sql server database.
I'm looking for ideas of how to readily identify the edit/combobox and store
the hint.

Mel
If I understand the issue correctly a simple table of "userid,
objectname, tooltip" should be acceptable.

Then on the form load you lookup the user and set each object's
tooltip text.

Tom P.
Aug 11 '08 #2
On Mon, 11 Aug 2008 16:20:48 -0500, Mel Weaver wrote:
I have a user that wants to define his own tooltips hints for any
edit/combobox in the program. It is a multiuser window form
application, so the hints are for the other users. The backend is a sql
server database. I'm looking for ideas of how to readily identify the
edit/combobox and store the hint.

Mel
The following builds buttons from a database table and adds a tool tip
from the database. Gives you an idea on how to make this happen. I add
the row to the button so that I can have a generic click routine for all
buttons.

foreach (MyDataSet.tableRow dismissal in
DB.scoreDataset.table.Rows)
{
if (dismissal.IsButtonColumnNull())
{
continue;
}

RadioButton button = new RadioButton();
button.Appearance =
System.Windows.Forms.Appearance.Button;
// button.AutoSize = true;
int offset = dismissal.ButtonColumn 2 ? 160 : 15;
button.Location = new System.Drawing.Point(10 +
((dismissal.ButtonColumn % 3) * 105), offset + (dismissal.ButtonRow *
35));
button.Name = String.Format("Name{0}", dismissal.ID);
button.Size = new System.Drawing.Size(100, 23);
button.TabIndex = 0;
button.TabStop = true;
button.TextAlign = ContentAlignment.MiddleCenter;
button.Text = dismissal.Description;
button.Tag = dismissal;
button.UseVisualStyleBackColor = true;
button.Checked = (dismissal.ID == 0);
button.CheckedChanged += new System.EventHandler
(DismissalCheckedChanged);

TypeGroup.Controls.Add(button);

if (!dismissal.IsTooltipNull())
{
toolTip1.SetToolTip(button, dismissal.Tooltip);
}
}
Ta
Ken
Aug 11 '08 #3

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

Similar topics

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...
2
by: vinesh | last post by:
Whenever a user-defined function or subroutine is created and used in a page, it shows tooltip(or intellisense) to help developers view the arguments and parameters of the function. Along with this...
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,...
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. ...
9
by: timnels | last post by:
I have an issue where I have a user control that is launched into a floating form. At some point later, I allow the user to "unfloat" the user control by reparenting it on a split container in...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.