Controls that display text
Underline is a property of text in a control.
This property does not work in MonthCalendar controls on the Microsoft Vista operating system.
To underline all text items in a control:
Select the Underline check box on the Font tab page of the control’s property page, or select the control and then click the U button on the StyleBar.
To underline a text object in a graph control:
Display the Text tab page of the graph control’s Properties view and select the desired text object from the Text Object list.
Select the Underline check box on the Text tab page.
The Underline property takes a boolean value. The following example underlines the text in a StaticText control:
st_1.Underline = TRUE
This example underlines the label of the Value axis of a graph control:
gr_1.Values.LabelDispAttr.Underline = TRUE