Click here to Skip to main content
15,896,154 members
Articles / Multimedia / GDI+

Storing and Recalling Printer Settings in C#.NET

Rate me:
Please Sign up or sign in to vote.
4.69/5 (8 votes)
4 Nov 2012Public Domain7 min read 85.5K   4.7K   45  
This article shows how you can save printer settings of any printer to a file or an arraylist to be recalled later.
namespace Printer_Settings
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.btnStore1 = new System.Windows.Forms.Button();
            this.btnStore2 = new System.Windows.Forms.Button();
            this.btnStore3 = new System.Windows.Forms.Button();
            this.btnStore4 = new System.Windows.Forms.Button();
            this.btnStore5 = new System.Windows.Forms.Button();
            this.btnStore6 = new System.Windows.Forms.Button();
            this.btnStore7 = new System.Windows.Forms.Button();
            this.btnStore8 = new System.Windows.Forms.Button();
            this.btnStore9 = new System.Windows.Forms.Button();
            this.btnStore10 = new System.Windows.Forms.Button();
            this.btnRecall1 = new System.Windows.Forms.Button();
            this.btnRecall2 = new System.Windows.Forms.Button();
            this.btnRecall3 = new System.Windows.Forms.Button();
            this.btnRecall4 = new System.Windows.Forms.Button();
            this.btnRecall5 = new System.Windows.Forms.Button();
            this.btnRecall6 = new System.Windows.Forms.Button();
            this.btnRecall7 = new System.Windows.Forms.Button();
            this.btnRecall8 = new System.Windows.Forms.Button();
            this.btnRecall9 = new System.Windows.Forms.Button();
            this.btnRecall10 = new System.Windows.Forms.Button();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.label1 = new System.Windows.Forms.Label();
            this.rbDevmodeNo = new System.Windows.Forms.RadioButton();
            this.rbDevmodeYes = new System.Windows.Forms.RadioButton();
            this.btnSaveDevmode = new System.Windows.Forms.Button();
            this.btnSave = new System.Windows.Forms.Button();
            this.btnLoad = new System.Windows.Forms.Button();
            this.tbxStatus10 = new System.Windows.Forms.TextBox();
            this.tbxStatus9 = new System.Windows.Forms.TextBox();
            this.tbxStatus8 = new System.Windows.Forms.TextBox();
            this.tbxStatus7 = new System.Windows.Forms.TextBox();
            this.tbxStatus6 = new System.Windows.Forms.TextBox();
            this.tbxStatus5 = new System.Windows.Forms.TextBox();
            this.tbxStatus4 = new System.Windows.Forms.TextBox();
            this.tbxStatus3 = new System.Windows.Forms.TextBox();
            this.tbxStatus2 = new System.Windows.Forms.TextBox();
            this.tbxStatus1 = new System.Windows.Forms.TextBox();
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
            this.cbxInstalledPrinters = new System.Windows.Forms.ComboBox();
            this.label2 = new System.Windows.Forms.Label();
            this.btnProperties = new System.Windows.Forms.Button();
            this.cbxPaperSize = new System.Windows.Forms.ComboBox();
            this.cbxPrintQuality = new System.Windows.Forms.ComboBox();
            this.cbxPaperSource = new System.Windows.Forms.ComboBox();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.tbxPrinterName = new System.Windows.Forms.TextBox();
            this.tbxVres = new System.Windows.Forms.TextBox();
            this.tbxHRes = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.rbPortrait = new System.Windows.Forms.RadioButton();
            this.rbLandscape = new System.Windows.Forms.RadioButton();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.rtbxComparator = new System.Windows.Forms.RichTextBox();
            this.btnRunComparator = new System.Windows.Forms.Button();
            this.groupBox6 = new System.Windows.Forms.GroupBox();
            this.rbArraylist2 = new System.Windows.Forms.RadioButton();
            this.rbFile2 = new System.Windows.Forms.RadioButton();
            this.btnLoad2 = new System.Windows.Forms.Button();
            this.groupBox5 = new System.Windows.Forms.GroupBox();
            this.rbArraylist1 = new System.Windows.Forms.RadioButton();
            this.rbFile1 = new System.Windows.Forms.RadioButton();
            this.btnLoad1 = new System.Windows.Forms.Button();
            this.tbxPageWidth = new System.Windows.Forms.TextBox();
            this.tbxPageHeight = new System.Windows.Forms.TextBox();
            this.tbxPAHeight = new System.Windows.Forms.TextBox();
            this.tbxPAWidth = new System.Windows.Forms.TextBox();
            this.label10 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.btnHelp = new System.Windows.Forms.Button();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox6.SuspendLayout();
            this.groupBox5.SuspendLayout();
            this.SuspendLayout();
            // 
            // btnStore1
            // 
            this.btnStore1.Location = new System.Drawing.Point(6, 217);
            this.btnStore1.Name = "btnStore1";
            this.btnStore1.Size = new System.Drawing.Size(75, 23);
            this.btnStore1.TabIndex = 0;
            this.btnStore1.Text = "Store 1";
            this.btnStore1.UseVisualStyleBackColor = true;
            this.btnStore1.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnStore2
            // 
            this.btnStore2.Location = new System.Drawing.Point(6, 246);
            this.btnStore2.Name = "btnStore2";
            this.btnStore2.Size = new System.Drawing.Size(75, 23);
            this.btnStore2.TabIndex = 0;
            this.btnStore2.Text = " Store 2";
            this.btnStore2.UseVisualStyleBackColor = true;
            this.btnStore2.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnStore3
            // 
            this.btnStore3.Location = new System.Drawing.Point(6, 275);
            this.btnStore3.Name = "btnStore3";
            this.btnStore3.Size = new System.Drawing.Size(75, 23);
            this.btnStore3.TabIndex = 0;
            this.btnStore3.Text = "Store 3";
            this.btnStore3.UseVisualStyleBackColor = true;
            this.btnStore3.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnStore4
            // 
            this.btnStore4.Location = new System.Drawing.Point(6, 304);
            this.btnStore4.Name = "btnStore4";
            this.btnStore4.Size = new System.Drawing.Size(75, 23);
            this.btnStore4.TabIndex = 0;
            this.btnStore4.Text = "Store 4";
            this.btnStore4.UseVisualStyleBackColor = true;
            this.btnStore4.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnStore5
            // 
            this.btnStore5.Location = new System.Drawing.Point(6, 333);
            this.btnStore5.Name = "btnStore5";
            this.btnStore5.Size = new System.Drawing.Size(75, 23);
            this.btnStore5.TabIndex = 0;
            this.btnStore5.Text = "Store 5";
            this.btnStore5.UseVisualStyleBackColor = true;
            this.btnStore5.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnStore6
            // 
            this.btnStore6.Location = new System.Drawing.Point(6, 362);
            this.btnStore6.Name = "btnStore6";
            this.btnStore6.Size = new System.Drawing.Size(75, 23);
            this.btnStore6.TabIndex = 0;
            this.btnStore6.Text = "Store 6";
            this.btnStore6.UseVisualStyleBackColor = true;
            this.btnStore6.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnStore7
            // 
            this.btnStore7.Location = new System.Drawing.Point(6, 391);
            this.btnStore7.Name = "btnStore7";
            this.btnStore7.Size = new System.Drawing.Size(75, 23);
            this.btnStore7.TabIndex = 0;
            this.btnStore7.Text = "Store 7";
            this.btnStore7.UseVisualStyleBackColor = true;
            this.btnStore7.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnStore8
            // 
            this.btnStore8.Location = new System.Drawing.Point(6, 420);
            this.btnStore8.Name = "btnStore8";
            this.btnStore8.Size = new System.Drawing.Size(75, 23);
            this.btnStore8.TabIndex = 0;
            this.btnStore8.Text = "Store 8";
            this.btnStore8.UseVisualStyleBackColor = true;
            this.btnStore8.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnStore9
            // 
            this.btnStore9.Location = new System.Drawing.Point(6, 449);
            this.btnStore9.Name = "btnStore9";
            this.btnStore9.Size = new System.Drawing.Size(75, 23);
            this.btnStore9.TabIndex = 0;
            this.btnStore9.Text = "Store 9";
            this.btnStore9.UseVisualStyleBackColor = true;
            this.btnStore9.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnStore10
            // 
            this.btnStore10.Location = new System.Drawing.Point(6, 478);
            this.btnStore10.Name = "btnStore10";
            this.btnStore10.Size = new System.Drawing.Size(75, 23);
            this.btnStore10.TabIndex = 0;
            this.btnStore10.Text = "Store 10";
            this.btnStore10.UseVisualStyleBackColor = true;
            this.btnStore10.Click += new System.EventHandler(this.btnStore1_Click);
            // 
            // btnRecall1
            // 
            this.btnRecall1.Location = new System.Drawing.Point(99, 217);
            this.btnRecall1.Name = "btnRecall1";
            this.btnRecall1.Size = new System.Drawing.Size(75, 23);
            this.btnRecall1.TabIndex = 0;
            this.btnRecall1.Text = "Recall 1";
            this.btnRecall1.UseVisualStyleBackColor = true;
            this.btnRecall1.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // btnRecall2
            // 
            this.btnRecall2.Location = new System.Drawing.Point(99, 246);
            this.btnRecall2.Name = "btnRecall2";
            this.btnRecall2.Size = new System.Drawing.Size(75, 23);
            this.btnRecall2.TabIndex = 0;
            this.btnRecall2.Text = "Recall 2";
            this.btnRecall2.UseVisualStyleBackColor = true;
            this.btnRecall2.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // btnRecall3
            // 
            this.btnRecall3.Location = new System.Drawing.Point(99, 275);
            this.btnRecall3.Name = "btnRecall3";
            this.btnRecall3.Size = new System.Drawing.Size(75, 23);
            this.btnRecall3.TabIndex = 0;
            this.btnRecall3.Text = "Recall 3";
            this.btnRecall3.UseVisualStyleBackColor = true;
            this.btnRecall3.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // btnRecall4
            // 
            this.btnRecall4.Location = new System.Drawing.Point(99, 304);
            this.btnRecall4.Name = "btnRecall4";
            this.btnRecall4.Size = new System.Drawing.Size(75, 23);
            this.btnRecall4.TabIndex = 0;
            this.btnRecall4.Text = "Recall 4";
            this.btnRecall4.UseVisualStyleBackColor = true;
            this.btnRecall4.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // btnRecall5
            // 
            this.btnRecall5.Location = new System.Drawing.Point(99, 333);
            this.btnRecall5.Name = "btnRecall5";
            this.btnRecall5.Size = new System.Drawing.Size(75, 23);
            this.btnRecall5.TabIndex = 0;
            this.btnRecall5.Text = "Recall 5";
            this.btnRecall5.UseVisualStyleBackColor = true;
            this.btnRecall5.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // btnRecall6
            // 
            this.btnRecall6.Location = new System.Drawing.Point(99, 362);
            this.btnRecall6.Name = "btnRecall6";
            this.btnRecall6.Size = new System.Drawing.Size(75, 23);
            this.btnRecall6.TabIndex = 0;
            this.btnRecall6.Text = "Recall 6";
            this.btnRecall6.UseVisualStyleBackColor = true;
            this.btnRecall6.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // btnRecall7
            // 
            this.btnRecall7.Location = new System.Drawing.Point(99, 391);
            this.btnRecall7.Name = "btnRecall7";
            this.btnRecall7.Size = new System.Drawing.Size(75, 23);
            this.btnRecall7.TabIndex = 0;
            this.btnRecall7.Text = "Recall 7";
            this.btnRecall7.UseVisualStyleBackColor = true;
            this.btnRecall7.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // btnRecall8
            // 
            this.btnRecall8.Location = new System.Drawing.Point(99, 420);
            this.btnRecall8.Name = "btnRecall8";
            this.btnRecall8.Size = new System.Drawing.Size(75, 23);
            this.btnRecall8.TabIndex = 0;
            this.btnRecall8.Text = "Recall 8";
            this.btnRecall8.UseVisualStyleBackColor = true;
            this.btnRecall8.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // btnRecall9
            // 
            this.btnRecall9.Location = new System.Drawing.Point(99, 449);
            this.btnRecall9.Name = "btnRecall9";
            this.btnRecall9.Size = new System.Drawing.Size(75, 23);
            this.btnRecall9.TabIndex = 0;
            this.btnRecall9.Text = "Recall 9";
            this.btnRecall9.UseVisualStyleBackColor = true;
            this.btnRecall9.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // btnRecall10
            // 
            this.btnRecall10.Location = new System.Drawing.Point(99, 478);
            this.btnRecall10.Name = "btnRecall10";
            this.btnRecall10.Size = new System.Drawing.Size(75, 23);
            this.btnRecall10.TabIndex = 0;
            this.btnRecall10.Text = "Recall 10";
            this.btnRecall10.UseVisualStyleBackColor = true;
            this.btnRecall10.Click += new System.EventHandler(this.btnRestore1_Click);
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.groupBox2);
            this.groupBox1.Controls.Add(this.btnSaveDevmode);
            this.groupBox1.Controls.Add(this.btnSave);
            this.groupBox1.Controls.Add(this.btnLoad);
            this.groupBox1.Controls.Add(this.tbxStatus10);
            this.groupBox1.Controls.Add(this.btnRecall10);
            this.groupBox1.Controls.Add(this.tbxStatus9);
            this.groupBox1.Controls.Add(this.btnStore1);
            this.groupBox1.Controls.Add(this.tbxStatus8);
            this.groupBox1.Controls.Add(this.btnStore10);
            this.groupBox1.Controls.Add(this.tbxStatus7);
            this.groupBox1.Controls.Add(this.btnRecall1);
            this.groupBox1.Controls.Add(this.tbxStatus6);
            this.groupBox1.Controls.Add(this.btnRecall9);
            this.groupBox1.Controls.Add(this.tbxStatus5);
            this.groupBox1.Controls.Add(this.btnStore2);
            this.groupBox1.Controls.Add(this.tbxStatus4);
            this.groupBox1.Controls.Add(this.btnStore9);
            this.groupBox1.Controls.Add(this.tbxStatus3);
            this.groupBox1.Controls.Add(this.btnRecall2);
            this.groupBox1.Controls.Add(this.tbxStatus2);
            this.groupBox1.Controls.Add(this.btnRecall8);
            this.groupBox1.Controls.Add(this.tbxStatus1);
            this.groupBox1.Controls.Add(this.btnStore3);
            this.groupBox1.Controls.Add(this.btnStore8);
            this.groupBox1.Controls.Add(this.btnRecall3);
            this.groupBox1.Controls.Add(this.btnRecall7);
            this.groupBox1.Controls.Add(this.btnStore4);
            this.groupBox1.Controls.Add(this.btnStore7);
            this.groupBox1.Controls.Add(this.btnRecall4);
            this.groupBox1.Controls.Add(this.btnRecall6);
            this.groupBox1.Controls.Add(this.btnStore5);
            this.groupBox1.Controls.Add(this.btnStore6);
            this.groupBox1.Controls.Add(this.btnRecall5);
            this.groupBox1.Location = new System.Drawing.Point(730, 26);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(283, 651);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop = false;
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.label1);
            this.groupBox2.Controls.Add(this.rbDevmodeNo);
            this.groupBox2.Controls.Add(this.rbDevmodeYes);
            this.groupBox2.Location = new System.Drawing.Point(14, 20);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(262, 106);
            this.groupBox2.TabIndex = 4;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Use Devmode structure (Are you Man or Mouse?)";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(29, 65);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(182, 13);
            this.label1.TabIndex = 4;
            this.label1.Text = "Warning, this can FCUK your system!";
            // 
            // rbDevmodeNo
            // 
            this.rbDevmodeNo.AutoSize = true;
            this.rbDevmodeNo.Checked = true;
            this.rbDevmodeNo.Location = new System.Drawing.Point(151, 32);
            this.rbDevmodeNo.Name = "rbDevmodeNo";
            this.rbDevmodeNo.Size = new System.Drawing.Size(80, 17);
            this.rbDevmodeNo.TabIndex = 3;
            this.rbDevmodeNo.TabStop = true;
            this.rbDevmodeNo.Text = "No (Mouse)";
            this.rbDevmodeNo.UseVisualStyleBackColor = true;
            // 
            // rbDevmodeYes
            // 
            this.rbDevmodeYes.AutoSize = true;
            this.rbDevmodeYes.Location = new System.Drawing.Point(15, 32);
            this.rbDevmodeYes.Name = "rbDevmodeYes";
            this.rbDevmodeYes.Size = new System.Drawing.Size(73, 17);
            this.rbDevmodeYes.TabIndex = 3;
            this.rbDevmodeYes.Text = "Yes (Man)";
            this.rbDevmodeYes.UseVisualStyleBackColor = true;
            // 
            // btnSaveDevmode
            // 
            this.btnSaveDevmode.Location = new System.Drawing.Point(192, 144);
            this.btnSaveDevmode.Name = "btnSaveDevmode";
            this.btnSaveDevmode.Size = new System.Drawing.Size(75, 56);
            this.btnSaveDevmode.TabIndex = 2;
            this.btnSaveDevmode.Text = "Save Devmode Structure";
            this.btnSaveDevmode.UseVisualStyleBackColor = true;
            this.btnSaveDevmode.Click += new System.EventHandler(this.btnSaveDevmode_Click);
            // 
            // btnSave
            // 
            this.btnSave.Location = new System.Drawing.Point(99, 144);
            this.btnSave.Name = "btnSave";
            this.btnSave.Size = new System.Drawing.Size(75, 56);
            this.btnSave.TabIndex = 2;
            this.btnSave.Text = "Save Setup File";
            this.btnSave.UseVisualStyleBackColor = true;
            this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
            // 
            // btnLoad
            // 
            this.btnLoad.Location = new System.Drawing.Point(6, 144);
            this.btnLoad.Name = "btnLoad";
            this.btnLoad.Size = new System.Drawing.Size(75, 56);
            this.btnLoad.TabIndex = 2;
            this.btnLoad.Text = "Load Setup File";
            this.btnLoad.UseVisualStyleBackColor = true;
            this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click);
            // 
            // tbxStatus10
            // 
            this.tbxStatus10.Location = new System.Drawing.Point(193, 480);
            this.tbxStatus10.Name = "tbxStatus10";
            this.tbxStatus10.ReadOnly = true;
            this.tbxStatus10.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus10.TabIndex = 1;
            this.tbxStatus10.Text = "Free";
            // 
            // tbxStatus9
            // 
            this.tbxStatus9.Location = new System.Drawing.Point(193, 451);
            this.tbxStatus9.Name = "tbxStatus9";
            this.tbxStatus9.ReadOnly = true;
            this.tbxStatus9.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus9.TabIndex = 1;
            this.tbxStatus9.Text = "Free";
            // 
            // tbxStatus8
            // 
            this.tbxStatus8.Location = new System.Drawing.Point(193, 422);
            this.tbxStatus8.Name = "tbxStatus8";
            this.tbxStatus8.ReadOnly = true;
            this.tbxStatus8.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus8.TabIndex = 1;
            this.tbxStatus8.Text = "Free";
            // 
            // tbxStatus7
            // 
            this.tbxStatus7.Location = new System.Drawing.Point(193, 393);
            this.tbxStatus7.Name = "tbxStatus7";
            this.tbxStatus7.ReadOnly = true;
            this.tbxStatus7.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus7.TabIndex = 1;
            this.tbxStatus7.Text = "Free";
            // 
            // tbxStatus6
            // 
            this.tbxStatus6.Location = new System.Drawing.Point(193, 364);
            this.tbxStatus6.Name = "tbxStatus6";
            this.tbxStatus6.ReadOnly = true;
            this.tbxStatus6.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus6.TabIndex = 1;
            this.tbxStatus6.Text = "Free";
            // 
            // tbxStatus5
            // 
            this.tbxStatus5.Location = new System.Drawing.Point(193, 335);
            this.tbxStatus5.Name = "tbxStatus5";
            this.tbxStatus5.ReadOnly = true;
            this.tbxStatus5.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus5.TabIndex = 1;
            this.tbxStatus5.Text = "Free";
            // 
            // tbxStatus4
            // 
            this.tbxStatus4.Location = new System.Drawing.Point(193, 306);
            this.tbxStatus4.Name = "tbxStatus4";
            this.tbxStatus4.ReadOnly = true;
            this.tbxStatus4.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus4.TabIndex = 1;
            this.tbxStatus4.Text = "Free";
            // 
            // tbxStatus3
            // 
            this.tbxStatus3.Location = new System.Drawing.Point(193, 277);
            this.tbxStatus3.Name = "tbxStatus3";
            this.tbxStatus3.ReadOnly = true;
            this.tbxStatus3.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus3.TabIndex = 1;
            this.tbxStatus3.Text = "Free";
            // 
            // tbxStatus2
            // 
            this.tbxStatus2.Location = new System.Drawing.Point(193, 248);
            this.tbxStatus2.Name = "tbxStatus2";
            this.tbxStatus2.ReadOnly = true;
            this.tbxStatus2.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus2.TabIndex = 1;
            this.tbxStatus2.Text = "Free";
            // 
            // tbxStatus1
            // 
            this.tbxStatus1.Location = new System.Drawing.Point(193, 219);
            this.tbxStatus1.Name = "tbxStatus1";
            this.tbxStatus1.ReadOnly = true;
            this.tbxStatus1.Size = new System.Drawing.Size(75, 20);
            this.tbxStatus1.TabIndex = 1;
            this.tbxStatus1.Text = "Free";
            // 
            // openFileDialog1
            // 
            this.openFileDialog1.FileName = "openFileDialog1";
            // 
            // cbxInstalledPrinters
            // 
            this.cbxInstalledPrinters.FormattingEnabled = true;
            this.cbxInstalledPrinters.Location = new System.Drawing.Point(149, 26);
            this.cbxInstalledPrinters.Name = "cbxInstalledPrinters";
            this.cbxInstalledPrinters.Size = new System.Drawing.Size(150, 21);
            this.cbxInstalledPrinters.TabIndex = 2;
            this.cbxInstalledPrinters.SelectedIndexChanged += new System.EventHandler(this.cbxInstalledPrinters_SelectedIndexChanged);
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(56, 34);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(84, 13);
            this.label2.TabIndex = 3;
            this.label2.Text = "Installed Printers";
            // 
            // btnProperties
            // 
            this.btnProperties.Location = new System.Drawing.Point(65, 446);
            this.btnProperties.Name = "btnProperties";
            this.btnProperties.Size = new System.Drawing.Size(75, 62);
            this.btnProperties.TabIndex = 4;
            this.btnProperties.Text = "Printer Properties";
            this.btnProperties.UseVisualStyleBackColor = true;
            this.btnProperties.Click += new System.EventHandler(this.btnProperties_Click);
            // 
            // cbxPaperSize
            // 
            this.cbxPaperSize.FormattingEnabled = true;
            this.cbxPaperSize.Location = new System.Drawing.Point(149, 52);
            this.cbxPaperSize.Name = "cbxPaperSize";
            this.cbxPaperSize.Size = new System.Drawing.Size(150, 21);
            this.cbxPaperSize.TabIndex = 2;
            this.cbxPaperSize.SelectedIndexChanged += new System.EventHandler(this.cbxPaperSize_SelectedIndexChanged);
            // 
            // cbxPrintQuality
            // 
            this.cbxPrintQuality.FormattingEnabled = true;
            this.cbxPrintQuality.Location = new System.Drawing.Point(149, 78);
            this.cbxPrintQuality.Name = "cbxPrintQuality";
            this.cbxPrintQuality.Size = new System.Drawing.Size(150, 21);
            this.cbxPrintQuality.TabIndex = 2;
            this.cbxPrintQuality.SelectedIndexChanged += new System.EventHandler(this.cbxPrintQuality_SelectedIndexChanged);
            // 
            // cbxPaperSource
            // 
            this.cbxPaperSource.FormattingEnabled = true;
            this.cbxPaperSource.Location = new System.Drawing.Point(149, 104);
            this.cbxPaperSource.Name = "cbxPaperSource";
            this.cbxPaperSource.Size = new System.Drawing.Size(150, 21);
            this.cbxPaperSource.TabIndex = 2;
            this.cbxPaperSource.SelectedIndexChanged += new System.EventHandler(this.cbxPaperSource_SelectedIndexChanged);
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(77, 58);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(63, 13);
            this.label3.TabIndex = 3;
            this.label3.Text = "Paper Sizes";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(45, 82);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(95, 13);
            this.label4.TabIndex = 3;
            this.label4.Text = "Printer Resolutions";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(68, 106);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(72, 13);
            this.label5.TabIndex = 3;
            this.label5.Text = "Paper Source";
            // 
            // tbxPrinterName
            // 
            this.tbxPrinterName.Location = new System.Drawing.Point(149, 489);
            this.tbxPrinterName.Name = "tbxPrinterName";
            this.tbxPrinterName.ReadOnly = true;
            this.tbxPrinterName.Size = new System.Drawing.Size(150, 20);
            this.tbxPrinterName.TabIndex = 1;
            // 
            // tbxVres
            // 
            this.tbxVres.Location = new System.Drawing.Point(208, 417);
            this.tbxVres.Name = "tbxVres";
            this.tbxVres.ReadOnly = true;
            this.tbxVres.Size = new System.Drawing.Size(91, 20);
            this.tbxVres.TabIndex = 1;
            // 
            // tbxHRes
            // 
            this.tbxHRes.Location = new System.Drawing.Point(208, 391);
            this.tbxHRes.Name = "tbxHRes";
            this.tbxHRes.ReadOnly = true;
            this.tbxHRes.Size = new System.Drawing.Size(91, 20);
            this.tbxHRes.TabIndex = 1;
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(139, 398);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(54, 13);
            this.label6.TabIndex = 3;
            this.label6.Text = "Horizontal";
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(151, 422);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(42, 13);
            this.label7.TabIndex = 3;
            this.label7.Text = "Vertical";
            // 
            // rbPortrait
            // 
            this.rbPortrait.AutoSize = true;
            this.rbPortrait.Checked = true;
            this.rbPortrait.Location = new System.Drawing.Point(6, 41);
            this.rbPortrait.Name = "rbPortrait";
            this.rbPortrait.Size = new System.Drawing.Size(58, 17);
            this.rbPortrait.TabIndex = 5;
            this.rbPortrait.TabStop = true;
            this.rbPortrait.Text = "Portrait";
            this.rbPortrait.UseVisualStyleBackColor = true;
            this.rbPortrait.CheckedChanged += new System.EventHandler(this.rbPortrait_CheckedChanged);
            // 
            // rbLandscape
            // 
            this.rbLandscape.AutoSize = true;
            this.rbLandscape.Location = new System.Drawing.Point(6, 19);
            this.rbLandscape.Name = "rbLandscape";
            this.rbLandscape.Size = new System.Drawing.Size(80, 17);
            this.rbLandscape.TabIndex = 5;
            this.rbLandscape.Text = "LandScape";
            this.rbLandscape.UseVisualStyleBackColor = true;
            this.rbLandscape.CheckedChanged += new System.EventHandler(this.rbLandscape_CheckedChanged);
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.rbPortrait);
            this.groupBox3.Controls.Add(this.rbLandscape);
            this.groupBox3.Location = new System.Drawing.Point(178, 303);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(121, 70);
            this.groupBox3.TabIndex = 6;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Orientation";
            // 
            // groupBox4
            // 
            this.groupBox4.Controls.Add(this.rtbxComparator);
            this.groupBox4.Controls.Add(this.btnRunComparator);
            this.groupBox4.Controls.Add(this.groupBox6);
            this.groupBox4.Controls.Add(this.groupBox5);
            this.groupBox4.Location = new System.Drawing.Point(342, 26);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(360, 651);
            this.groupBox4.TabIndex = 8;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Comparator";
            // 
            // rtbxComparator
            // 
            this.rtbxComparator.Location = new System.Drawing.Point(6, 144);
            this.rtbxComparator.Name = "rtbxComparator";
            this.rtbxComparator.Size = new System.Drawing.Size(348, 501);
            this.rtbxComparator.TabIndex = 2;
            this.rtbxComparator.Text = "";
            // 
            // btnRunComparator
            // 
            this.btnRunComparator.Location = new System.Drawing.Point(258, 33);
            this.btnRunComparator.Name = "btnRunComparator";
            this.btnRunComparator.Size = new System.Drawing.Size(83, 81);
            this.btnRunComparator.TabIndex = 1;
            this.btnRunComparator.Text = "Run Comparator (CTRL to reset)";
            this.btnRunComparator.UseVisualStyleBackColor = true;
            this.btnRunComparator.Click += new System.EventHandler(this.btnRunComparator_Click);
            // 
            // groupBox6
            // 
            this.groupBox6.Controls.Add(this.rbArraylist2);
            this.groupBox6.Controls.Add(this.rbFile2);
            this.groupBox6.Controls.Add(this.btnLoad2);
            this.groupBox6.Location = new System.Drawing.Point(134, 27);
            this.groupBox6.Name = "groupBox6";
            this.groupBox6.Size = new System.Drawing.Size(96, 87);
            this.groupBox6.TabIndex = 0;
            this.groupBox6.TabStop = false;
            this.groupBox6.Text = "Source 2";
            // 
            // rbArraylist2
            // 
            this.rbArraylist2.AutoSize = true;
            this.rbArraylist2.Location = new System.Drawing.Point(6, 35);
            this.rbArraylist2.Name = "rbArraylist2";
            this.rbArraylist2.Size = new System.Drawing.Size(61, 17);
            this.rbArraylist2.TabIndex = 1;
            this.rbArraylist2.Text = "Arraylist";
            this.rbArraylist2.UseVisualStyleBackColor = true;
            // 
            // rbFile2
            // 
            this.rbFile2.AutoSize = true;
            this.rbFile2.Checked = true;
            this.rbFile2.Location = new System.Drawing.Point(6, 12);
            this.rbFile2.Name = "rbFile2";
            this.rbFile2.Size = new System.Drawing.Size(41, 17);
            this.rbFile2.TabIndex = 1;
            this.rbFile2.TabStop = true;
            this.rbFile2.Text = "File";
            this.rbFile2.UseVisualStyleBackColor = true;
            // 
            // btnLoad2
            // 
            this.btnLoad2.Location = new System.Drawing.Point(6, 58);
            this.btnLoad2.Name = "btnLoad2";
            this.btnLoad2.Size = new System.Drawing.Size(75, 23);
            this.btnLoad2.TabIndex = 0;
            this.btnLoad2.Text = "Load 2";
            this.btnLoad2.UseVisualStyleBackColor = true;
            this.btnLoad2.Click += new System.EventHandler(this.btnLoad2_Click);
            // 
            // groupBox5
            // 
            this.groupBox5.Controls.Add(this.rbArraylist1);
            this.groupBox5.Controls.Add(this.rbFile1);
            this.groupBox5.Controls.Add(this.btnLoad1);
            this.groupBox5.Location = new System.Drawing.Point(10, 26);
            this.groupBox5.Name = "groupBox5";
            this.groupBox5.Size = new System.Drawing.Size(96, 87);
            this.groupBox5.TabIndex = 0;
            this.groupBox5.TabStop = false;
            this.groupBox5.Text = "Source 1";
            // 
            // rbArraylist1
            // 
            this.rbArraylist1.AutoSize = true;
            this.rbArraylist1.Location = new System.Drawing.Point(6, 35);
            this.rbArraylist1.Name = "rbArraylist1";
            this.rbArraylist1.Size = new System.Drawing.Size(61, 17);
            this.rbArraylist1.TabIndex = 1;
            this.rbArraylist1.Text = "Arraylist";
            this.rbArraylist1.UseVisualStyleBackColor = true;
            // 
            // rbFile1
            // 
            this.rbFile1.AutoSize = true;
            this.rbFile1.Checked = true;
            this.rbFile1.Location = new System.Drawing.Point(6, 12);
            this.rbFile1.Name = "rbFile1";
            this.rbFile1.Size = new System.Drawing.Size(41, 17);
            this.rbFile1.TabIndex = 1;
            this.rbFile1.TabStop = true;
            this.rbFile1.Text = "File";
            this.rbFile1.UseVisualStyleBackColor = true;
            // 
            // btnLoad1
            // 
            this.btnLoad1.Location = new System.Drawing.Point(6, 58);
            this.btnLoad1.Name = "btnLoad1";
            this.btnLoad1.Size = new System.Drawing.Size(75, 23);
            this.btnLoad1.TabIndex = 0;
            this.btnLoad1.Text = "Load 1";
            this.btnLoad1.UseVisualStyleBackColor = true;
            this.btnLoad1.Click += new System.EventHandler(this.btnLoad1_Click);
            // 
            // tbxPageWidth
            // 
            this.tbxPageWidth.Location = new System.Drawing.Point(178, 217);
            this.tbxPageWidth.Name = "tbxPageWidth";
            this.tbxPageWidth.ReadOnly = true;
            this.tbxPageWidth.Size = new System.Drawing.Size(100, 20);
            this.tbxPageWidth.TabIndex = 9;
            this.tbxPageWidth.Leave += new System.EventHandler(this.tbxPageWidth_Leave);
            // 
            // tbxPageHeight
            // 
            this.tbxPageHeight.Location = new System.Drawing.Point(178, 243);
            this.tbxPageHeight.Name = "tbxPageHeight";
            this.tbxPageHeight.ReadOnly = true;
            this.tbxPageHeight.Size = new System.Drawing.Size(100, 20);
            this.tbxPageHeight.TabIndex = 10;
            this.tbxPageHeight.Leave += new System.EventHandler(this.tbxPageHeight_Leave);
            // 
            // tbxPAHeight
            // 
            this.tbxPAHeight.Location = new System.Drawing.Point(71, 243);
            this.tbxPAHeight.Name = "tbxPAHeight";
            this.tbxPAHeight.ReadOnly = true;
            this.tbxPAHeight.Size = new System.Drawing.Size(100, 20);
            this.tbxPAHeight.TabIndex = 12;
            // 
            // tbxPAWidth
            // 
            this.tbxPAWidth.Location = new System.Drawing.Point(71, 217);
            this.tbxPAWidth.Name = "tbxPAWidth";
            this.tbxPAWidth.ReadOnly = true;
            this.tbxPAWidth.Size = new System.Drawing.Size(100, 20);
            this.tbxPAWidth.TabIndex = 13;
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(30, 220);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(35, 13);
            this.label10.TabIndex = 14;
            this.label10.Text = "Width";
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(27, 245);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(38, 13);
            this.label11.TabIndex = 15;
            this.label11.Text = "Height";
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(205, 201);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(53, 13);
            this.label9.TabIndex = 11;
            this.label9.Text = "Page size";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(86, 201);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(73, 13);
            this.label8.TabIndex = 11;
            this.label8.Text = "Printable Area";
            // 
            // btnHelp
            // 
            this.btnHelp.Location = new System.Drawing.Point(71, 301);
            this.btnHelp.Name = "btnHelp";
            this.btnHelp.Size = new System.Drawing.Size(72, 72);
            this.btnHelp.TabIndex = 16;
            this.btnHelp.Text = "Show Help";
            this.btnHelp.UseVisualStyleBackColor = true;
            this.btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1074, 741);
            this.Controls.Add(this.btnHelp);
            this.Controls.Add(this.label11);
            this.Controls.Add(this.label10);
            this.Controls.Add(this.tbxPAWidth);
            this.Controls.Add(this.tbxPAHeight);
            this.Controls.Add(this.label9);
            this.Controls.Add(this.label8);
            this.Controls.Add(this.tbxPageHeight);
            this.Controls.Add(this.tbxPageWidth);
            this.Controls.Add(this.groupBox4);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.btnProperties);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.cbxPaperSource);
            this.Controls.Add(this.cbxPrintQuality);
            this.Controls.Add(this.cbxPaperSize);
            this.Controls.Add(this.cbxInstalledPrinters);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.tbxHRes);
            this.Controls.Add(this.tbxVres);
            this.Controls.Add(this.tbxPrinterName);
            this.Name = "Form1";
            this.Text = "Form1";
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox6.ResumeLayout(false);
            this.groupBox6.PerformLayout();
            this.groupBox5.ResumeLayout(false);
            this.groupBox5.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Button btnStore1;
        private System.Windows.Forms.Button btnStore2;
        private System.Windows.Forms.Button btnStore3;
        private System.Windows.Forms.Button btnStore4;
        private System.Windows.Forms.Button btnStore5;
        private System.Windows.Forms.Button btnStore6;
        private System.Windows.Forms.Button btnStore7;
        private System.Windows.Forms.Button btnStore8;
        private System.Windows.Forms.Button btnStore9;
        private System.Windows.Forms.Button btnStore10;
        private System.Windows.Forms.Button btnRecall1;
        private System.Windows.Forms.Button btnRecall2;
        private System.Windows.Forms.Button btnRecall3;
        private System.Windows.Forms.Button btnRecall4;
        private System.Windows.Forms.Button btnRecall5;
        private System.Windows.Forms.Button btnRecall6;
        private System.Windows.Forms.Button btnRecall7;
        private System.Windows.Forms.Button btnRecall8;
        private System.Windows.Forms.Button btnRecall9;
        private System.Windows.Forms.Button btnRecall10;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.TextBox tbxStatus10;
        private System.Windows.Forms.TextBox tbxStatus9;
        private System.Windows.Forms.TextBox tbxStatus8;
        private System.Windows.Forms.TextBox tbxStatus7;
        private System.Windows.Forms.TextBox tbxStatus6;
        private System.Windows.Forms.TextBox tbxStatus5;
        private System.Windows.Forms.TextBox tbxStatus4;
        private System.Windows.Forms.TextBox tbxStatus3;
        private System.Windows.Forms.TextBox tbxStatus2;
        private System.Windows.Forms.TextBox tbxStatus1;
        private System.Windows.Forms.RadioButton rbDevmodeYes;
        private System.Windows.Forms.RadioButton rbDevmodeNo;
        private System.Windows.Forms.Button btnSave;
        private System.Windows.Forms.Button btnLoad;
        private System.Windows.Forms.GroupBox groupBox2;
        private System.Windows.Forms.Button btnSaveDevmode;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.OpenFileDialog openFileDialog1;
        private System.Windows.Forms.SaveFileDialog saveFileDialog1;
        private System.Windows.Forms.ComboBox cbxInstalledPrinters;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Button btnProperties;
        private System.Windows.Forms.ComboBox cbxPaperSize;
        private System.Windows.Forms.ComboBox cbxPrintQuality;
        private System.Windows.Forms.ComboBox cbxPaperSource;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.TextBox tbxPrinterName;
        private System.Windows.Forms.TextBox tbxVres;
        private System.Windows.Forms.TextBox tbxHRes;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.RadioButton rbPortrait;
        private System.Windows.Forms.RadioButton rbLandscape;
        private System.Windows.Forms.GroupBox groupBox3;
        private System.Windows.Forms.GroupBox groupBox4;
        private System.Windows.Forms.GroupBox groupBox6;
        private System.Windows.Forms.RadioButton rbArraylist2;
        private System.Windows.Forms.RadioButton rbFile2;
        private System.Windows.Forms.Button btnLoad2;
        private System.Windows.Forms.GroupBox groupBox5;
        private System.Windows.Forms.RadioButton rbArraylist1;
        private System.Windows.Forms.RadioButton rbFile1;
        private System.Windows.Forms.Button btnLoad1;
        private System.Windows.Forms.RichTextBox rtbxComparator;
        private System.Windows.Forms.Button btnRunComparator;
        private System.Windows.Forms.TextBox tbxPageWidth;
        private System.Windows.Forms.TextBox tbxPageHeight;
        private System.Windows.Forms.TextBox tbxPAHeight;
        private System.Windows.Forms.TextBox tbxPAWidth;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.Button btnHelp;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions