Tooltip help in ASP.NET and .NET Windows Forms
Who are you?
You produce high quality Web or Windows applications but you suffer from that your applications have much small market share if compared to lower quality competitive applications?
You waste resources on supporting the customers of your applications much more the resources you used to produce the entire application itself?
Your customers typically complain that they are unable to take the full advantage of your applications features and that the value your promised them is not that efficient?
If you are any of those above, then please read on ... Providing friendly help can be a simple, yet intelligent, saver from these nightmares.
Why help? | ||||||||
[Top] |
Experience shows that developers typically don't care much about providing help for the applications they produce. Although this can be due to several reasons, we are interested here in one specific reason: Developers typically think that their applications can be easily understood and that no one will have any problem at all to learn their applications as they use them. Although this may be correct for a limited class of applications, experience shows that it's incorrect at all for most of applications classes. Even if we assumed this is correct, after all, this is the point of view of the developer who produced the application and certainly he is confident 'he' can use it well. What we care much about here is the actual users of this applications who are are our real target. Being able to use his application easily, this should not make us think that this developer did a good job and that his application is actually self descriptive. This is not only because he is the one who developed it and it's natural that the application is easy for him, but more importantly because even the average user of any application is much less experienced than the developer who produced it --- not to mention the users below the average in their application usage skills. In this tutorial we are going to present you a set of effective, yet simple, techniques that you can employ to achieve valuable attraction factors for your applications by providing your users the sufficient help they need to effectively use it. | |||||||
The simplest and most effective approach: ToolTips | ||||||||
[Top] |
The interesting issue about ToolTpis is that they solve the old problem of eliminating help to conserve screen space. ToolTips does not occupy any area at all when they are not shown and in the same time when mouse pointer goes beyond it's specified area or when few seconds elapse, the ToolTip automatically disappear. We will show you now how to display these ToolTpis in your Windows Applications as well as in your Web Applications. | |||||||
For ASP.NET Web Applications: (Download ToolTip Example 1) | ||||||||
[Top] |
For example, you can draw a Button on your form and then set it's ToolTip property via the properties window at design time as follows:
On this way you can insert only plain text in your tooltip, but that should be enough if your application will be used inside your organization. The problem is if you plan to sell your web application worldwide. In that case is better to obtain some more professional solution, like AspLib ToolTip which supports formatted text, images, hyperlinks, css styles, skins etc. | |||||||
For .NET Windows Forms Applications: (Download ToolTip Example 2) | ||||||||
|
If you performed the same steps we mentioned in the Web Application above, you will be faced by a strange fact: Controls in Windows applications have no ToolTip property! But to be more precise, we have to say: Controls in Windows applications have no ToolTip property by default. In other words you need to provide these controls by the ToolTip property before you can actually take it's benefits and this can be simply performed by adding a ToolTip component to your form. Let's try it ourselves: From your toolbox get a ToolTip component and drop it into your form as shown in the following figure.
This way, and after adding this component you will notice that your button (and typically any other control) has it's ToolTip property added but with a slightly different name: 'ToolTip on ToolTip1' You know what to do next, simply proceed as we did in the above Web Application then run / test your Windows Application. | ||||||||
Greedy? Want to have more space for your help? | ||||||||
[Top] |
You need to use a set of totally different techniques to provide help that is composed of long paragraphs and complete pages. Your users will thank you very much if you gave them the ability to display help in your application and in the same time to see the user interface of your application. This way they can contrast what they are reading inside this help with the actual user interface of your application. Here's how: | |||||||
For ASP.NET Web Applications: (Download Example 3) | ||||||||
[Top] |
Let's analyze the code in figure 5:
When you run this application, here's what you will see:
And when you request detailed help about average calculation (by clicking the '(?)') here's the different window that will appear showing you this help.
| |||||||
For .NET Windows Forms Applications: (Download HelpProvider Example) | ||||||||
[Top] |
Here we will use a component called HelpProvider to achieve a somewhat similar effect. Drag a HelpProvider component into your form as in the following figure:
This will cause the property of 'HelpString on HelpProvider1' to appear for our 'Average' button and you can set it to whatever text you want. When you run the application and press F1 while the 'Average' button having the focus you will see the following:
| |||||||
For further information | ||||||||
[Top] |
| |||||||
Related articles:
1. Validating User Input In ASP.NET 2.0 Web Applications
2. How to easily benefit from Microsoft HTML Help Workshop
3. Automatic Documentation Generation in ASP.NET applications
4. XML Automatic Documentation Tags
5. Introducing to Help System in .NET























