Skip to main content

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

  • February 15, 2013
  • 0 replies
  • 0 views

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