Hunter Mitchell
Hunter Mitchell

Reputation: 7293

Printing a hidden Form in C#?

i have a windows form that contains a bunch of textboxes. I need a way to print them out on a peice of paper. What i did is transfer the information from the first form to the second form. I formated the second form the way i wanted it to look like when i printed it. I am using the PrintForm Control. Using this controls makes me have to make it visible to print it.

Is there any other way i can print my second form right when it loads and hide it so that the user does not see that form?

Upvotes: 1

Views: 872

Answers (1)

Jacob Seleznev
Jacob Seleznev

Reputation: 8131

Make the form visible, but just out of view. E.g Location = new Point(-1000, -1000);

Upvotes: 1

Related Questions