Form1.Designer.cs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. namespace WindowsFormsPrintDocument
  2. {
  3. partial class Form1
  4. {
  5. /// <summary>
  6. /// 必需的设计器变量。
  7. /// </summary>
  8. private System.ComponentModel.IContainer components = null;
  9. /// <summary>
  10. /// 清理所有正在使用的资源。
  11. /// </summary>
  12. /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
  13. protected override void Dispose(bool disposing)
  14. {
  15. if (disposing && (components != null))
  16. {
  17. components.Dispose();
  18. }
  19. base.Dispose(disposing);
  20. }
  21. #region Windows 窗体设计器生成的代码
  22. /// <summary>
  23. /// 设计器支持所需的方法 - 不要修改
  24. /// 使用代码编辑器修改此方法的内容。
  25. /// </summary>
  26. private void InitializeComponent()
  27. {
  28. System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
  29. this.button1 = new System.Windows.Forms.Button();
  30. this.printDocument1 = new System.Drawing.Printing.PrintDocument();
  31. this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
  32. this.SuspendLayout();
  33. //
  34. // button1
  35. //
  36. this.button1.Location = new System.Drawing.Point(253, 46);
  37. this.button1.Name = "button1";
  38. this.button1.Size = new System.Drawing.Size(75, 30);
  39. this.button1.TabIndex = 0;
  40. this.button1.Text = "打印";
  41. this.button1.UseVisualStyleBackColor = true;
  42. this.button1.Click += new System.EventHandler(this.button1_Click);
  43. //
  44. // printDocument1
  45. //
  46. this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
  47. //
  48. // printPreviewDialog1
  49. //
  50. this.printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0);
  51. this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
  52. this.printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300);
  53. this.printPreviewDialog1.Enabled = true;
  54. this.printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
  55. this.printPreviewDialog1.Name = "printPreviewDialog1";
  56. this.printPreviewDialog1.Visible = false;
  57. //
  58. // Form1
  59. //
  60. this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
  61. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  62. this.ClientSize = new System.Drawing.Size(582, 429);
  63. this.Controls.Add(this.button1);
  64. this.Name = "Form1";
  65. this.Text = "Form1";
  66. this.ResumeLayout(false);
  67. }
  68. #endregion
  69. private System.Windows.Forms.Button button1;
  70. private System.Drawing.Printing.PrintDocument printDocument1;
  71. private System.Windows.Forms.PrintPreviewDialog printPreviewDialog1;
  72. }
  73. }