Hi.
I have been using BitBlt to draw images to a picture box and that is working great but I haven't figured out how to draw text onto it.
Any help would be appreciated on how to draw text to a picturebox.
Printable View
Hi.
I have been using BitBlt to draw images to a picture box and that is working great but I haven't figured out how to draw text onto it.
Any help would be appreciated on how to draw text to a picturebox.
For simple text use Print method - here is very basic sample code:
Code:Private Sub Command1_Click()
With Picture1
.AutoRedraw = True
.ForeColor = vbRed
.Font.Size = 14
.FontItalic = True
.FontUnderline = True
'and so on with fonts ...
.CurrentX = 300
.CurrentY = 100
Picture1.Print "Hello World!"
End With
End Sub