Printing Forms in VB

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

mojomojoa

Thread Starter
Joined
Jul 28, 2003
Messages
45
I forgot how to print a form in Visual Basic without printing the whole screen. I remember it's simple, so I feel kinda stupid asking this, but I can't recall how to do it.
 
Joined
Oct 7, 2003
Messages
1,741
i kinda forgot it too, and i feel kinda stupid askin ya, is :

form.print

the rite answer?
 
Joined
Oct 3, 2002
Messages
2,281
I think its form1.PrintForm

Here's the help text from MSDN

PrintForm Method


Sends abit-by-bit image of a Form object to the printer.

Syntax

object.PrintForm

The object placeholder represents anobject expression that evaluates to an object in the Applies To list. If object is omitted, the Form with thefocus is assumed to be object.

Remarks

PrintForm prints all visible objects andbitmaps of the Form object. PrintForm also prints graphics added to a Form object or PictureBox control atrun time if the AutoRedraw property is True when the graphics are drawn.

The printer used by PrintForm is determined by the operating system's Control Panel settings.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top