How do you draw text in a picturebox.
Printable View
How do you draw text in a picturebox.
Look up the TextOut API call.
I don't have API viewer. What does API call look like?
the api viewer comes with your visual basic, try clicking the
windows button --> programs-->Visual Basic-->Api Viewer
You can use vbAPI.com 's refrence too. It explains alot.... :D
API Viewer only comes with Professional and Enterprize versions of VB. I am poor so I only have learning edition.
VB Code:
Private Sub Command1_Click() Picture1.Print "ABC" End Sub
Do NOT try to put this code into the Form_Load event, you would have to put it in the Form_Paint event. Also, set Picture1's AutoRedraw property to True at design time.