PrintForm Component 1.0 Question

Joined
Dec 10, 2007
Messages
18
Location
Florida
Programming Experience
Beginner
This is a component offered for download at
http://msdn2.microsoft.com/en-us/vbasic/aa701261.aspx
which, allows an easy way to print a form.

Once the component is dragged onto my form, I know how to print a form by using this code:

VB.NET:
PrintForm1.Print()

If the form has not been printed yet then I want a certain action to occur but, I dont know how to show this in a decision statement.

I was experimenting with some code and I came up with this:

VB.NET:
If PrintForm1.Form.Created = False Then
'Perform a certain task
End If

but this doesnt solve my problem. If anybody knows how to do this it would really help! :confused:
 
Surely you know whether the form has been printed or not because before you call Print it hasn't and after that it has. Just set a Boolean variable when you call Print.
 
Back
Top