![]() Occurs immediately before each page is printed. Occurs when the last page of the document has printed. Occurs when the Print method is called, before the first page of the document prints. ![]() Sends an image of a Windows Form to the destination specified by the PrintAction property, specifying the form and printing options Sends an image of a Windows Form to the destination specified by the PrintAction property. OnQueryPageSettings(QueryPageSettingsEventArgs) Releases the unmanaged resources used by a PrintForm component and optionally releases the managed resources.(Overrides Component.Dispose(Boolean).) Gets or sets the file name of an Encapsulated PostScript file and the path to which the file will be saved when the PrintAction property is set to PrintToFile. Gets or sets a PrinterSettings object that you can use to specify various properties of a printer. Gets or sets a value indicating whether the output is directed to a printer, to a print preview window, or to a file. Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document. Initializes a new instance of the PrintForm class, specifying the IContainer in which it will be parented. Initializes a new instance of the PrintForm class, specifying the Form where it will be parented. Initializes a new instance of the PrintForm class. Namespace: Assembly: (in .dll) Inheritance Hierarchy Using (var rectangleBorder = new Pen(Color.Black, 1))Į.Graphics.Enables printing an image of a Windows Form at run time. Private void Form1_Paint(object sender, PaintEventArgs e) ![]() Using rectangleBorder = New Pen(Color.Black, 1)Į.Graphics.DrawRectangle(rectangleBorder, r) Private Sub Form1_Paint(sender As Object, e As PaintEventArgs) Handles MyBase.Paint Here is an example of drawing a simple rectangle on a form: ' vb.net Generally what you would do is handle the Paint event of the control you wish to draw on and then leverage the PaintEventArgs argument. You will need to determine which method you'll need to use from this list: This is certainly isn't all inclusive, I left many of them out. Here are various draw methods under the Graphics class: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |