You can do this & code is also so simple...
use below code :
Private Sub btnPrintPicture_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim myPrintDocument1 As System.Drawing.Printing.PrintDocument = newSystem.Drawing.Printing.PrintDocument()
Dim myPrinDialog1 As New PrintDialog()
AddHandler myPrintDocument1.PrintPage, newSystem.Drawing.Printing.PrintPageEventHandler(myPrintDocument2_PrintPage)
myPrinDialog1.Document = myPrintDocument1
If myPrinDialog1.ShowDialog() = DialogResult.OK Then
myPrintDocument1.Print()
End If
End Sub
Using This function it will only print of the Picturebox, as you want...
Private Sub myPrintDocument1_PrintPage(sender As System.Object, e As System.Drawing.Printing.PrintPageEventArgs)
Dim myBitmap2 As New Bitmap(Me.Width, Me.Height)
Me.DrawToBitmap(myBitmap2, New Rectangle(0, 0, Me.Width, Me.Height))
e.Graphics.DrawImage(myBitmap2, 0, 0)
myBitmap2.Dispose()
End Sub
you can print this as PDF...
Hope this will help to you...