Skip to main content
Dominique Sacre
Rocketeer
Feb 15, 2013 10:49 PM UTC

How can you dynamically change a tooltip for a control in Winforms.

Problem:

In Winforms you can use the Tooltip provider to add tooltips to controls. This allows you to define tooltips at design time for the controls on a Form.

How can you change tooltip text at runtime from COBOL ?

Resolution:

You can do this using code such as :-

           invoke tooltip1::"SetToolTip"(numericupdown1 , "New Text for tooltip")

tooltip1 is an instance of the tooltip provider that was added to the form.

Old KB# 4437