|
-
Apr 18th, 2005, 06:19 PM
#1
Thread Starter
Lively Member
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:
Private Sub Form_Load()
Picture1.Cls
Picture1.Print "Print!"
End Sub
Any ideas???
ooh And When i do it to Form 2 I would just write
And so on?? I dunno??
Last edited by Brin; Apr 18th, 2005 at 06:39 PM.
Reason: Solved!
-
Apr 18th, 2005, 06:34 PM
#2
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.
-
Apr 18th, 2005, 06:39 PM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|