Results 1 to 3 of 3

Thread: Form_Load() + Print Command?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    127

    Resolved Form_Load() + Print Command?

    Hey,
    Im trying to make it so when this form loads it immedeatly prints into the picture box... Really easy thing to do, i dunno why its not doing it!!!!!!!!!!!!

    VB Code:
    1. Private Sub Form_Load()
    2.     Picture1.Cls
    3.     Picture1.Print "Print!"
    4. End Sub

    Any ideas???
    ooh And When i do it to Form 2 I would just write

    VB Code:
    1. Private Sub Form2_Load()
    And so on?? I dunno??
    Last edited by Brin; Apr 18th, 2005 at 06:39 PM. Reason: Solved!

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Form_Load() + Print Command?

    Since the Picture Box isn't visible when the Form_Load event is fired you either need to move the code to the Form_Paint event or set the AutoRedraw property of the PictureBox to True.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    127

    Re: Form_Load() + Print Command?

    Works like a charm
    Thankss!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width