Hi,

Does anybody know how I can draw a horizontal line under a string or integer?

The problem is that I don't want to hardcode the line because the position of the integer will change.

'command button and picturebox
Private Sub Command1_Click()
Dim number As Integer
Randomize
number = Int(Rnd * 200)
Picture1.Cls
Picture1.FontSize = 14
picture1.print number
end sub

How could I have it so that, regardless of whether I have:

picture1.print number
or
picture1.print " " & number
or
picture1.print "You will see that the answer is " & _
number & ", so you have failed the test."

the line will always appear under the integer, number?

Thanks for any help!