Quick question about "Print"

Jaxbot

Newcomer
Joined
May 2, 2008
Messages
9
Hi.

In VB 6 I can do things like picturebox1.Print "hello, world.".

How would I do that in VB.NET?

ty
 
Graphics and Font objects

Something along the lines of this:

Visual Basic:
Using gfx As Graphics = Me.PictureBox1.CreateGraphics()
    Dim fnt As Font = New Font("Arial", 10.0)
    gfx.DrawString("hello, world", fnt, Brushes.Black, 10.0, 10.0)
End Using

You can find information about the types and methods used here in MSDN.

Good luck :cool:
 
Last edited:
Back
Top