简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM