Implementing Help

As useful as the ErrorProvider user interface is (at least compared with the status bar), it would be nice to provide help to our users that didn't take the form of a reprimand. It would also be useful to give them help without making them try something that fails. WinForms supports these goals in several ways.


One simple way is to provide each control with a tooltip so that when the user hovers the mouse pointer over the control, relevant instructions appear, as shown in Figure 3.6.

Figure 3.6. Using Tooltips

You can use the ToolTip component to add tooltips to any control in a form. After there is a ToolTip component ...

Get Windows Forms Programming in C# now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.