Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing picturebox to the default printer

sal21

Programmer
Joined
Apr 26, 2004
Messages
499
Location
IT
i can have a series of picturebox on a form.
how to print to the default printer, maintain the actually position.
naturally only a picturebox witht the name named pic1,pic2,picxx

MY TEST CODE:
Rich (BB code):
Private Sub PRINT_PICTUREBOX()

    Dim myitem As Control

    For Each myitem In Me.Controls
        If TypeOf myitem Is PictureBox Then
            If Left(myitem.Name, 3) = "PIC" Then '<<<< peraphs here the print code?t
        End If
    Next
End Sub
 
Last edited:
> i can have a series of picturebox on a form

Is this still your lotto project? And your insistence on overlaying various additional pictureboxes to show the selections?

Despite my favour for the mshflexgrid solution (really, so much easier for a whole bunch of reasons), my solution in https://www.tek-tips.com/threads/copy-and-paste-picture-box.1834258/post-7589882 to printing out the betting slip is agnostic as to how the betting slip is drawn - and so should work for any solution that has the bare betting slip in the background of any control that can hold an image and then draws on top of it

Another alternative is a simple MyForm.PrintForm - with perhaps some adjustment to only show the pictures you want printed
 

Part and Inventory Search

Sponsor

Back
Top