Thanks for reply! But I may not be clear in my question

I would like to show a text string with one character underlined using drawtext API call. Is it possible?

Here is the API declaration

Public Declare Function DrawText Lib "user32" Alias "DrawTextA" (ByVal hdc As Long, ByVal lpStr As String, ByVal nCount As Long, lpRect As RECT, ByVal wFormat As Long) As Long

for example:

DrawText(UserControl.hDC, MyString, Len(MyString), udtTRect, DT_CENTER)

will draw MyString in specified place. The question is how to draw the text with one character underlined? If there is no such format constant for DrawText, How Can I modify the text after DrawText call?