| 1: | using System; | |
| 2: | using System.Drawing; | |
| 3: | using System.Collections; | |
| 4: | using System.ComponentModel; | |
| 5: | using System.Windows.Forms; | |
| 6: | using System.Data; | |
| 7: | using BarcodeNETWorkShop.Core; | |
| 8: | using System.Drawing.Printing; | |
| 9: | ||
| 10: | namespace WinFeaturesDemoCS | |
| 11: | { | |
| 12: | /// <summary> | |
| 13: | /// Summary description for Form1. | |
| 14: | /// </summary> | |
| 15: | public class Form1 : System.Windows.Forms.Form | |
| 16: | { | |
| 17: | private System.Windows.Forms.Label label2; | |
| 18: | private System.Windows.Forms.Label label3; | |
| 19: | ||
| 20: | private System.Windows.Forms.GroupBox groupBox1; | |
| 21: | private System.Windows.Forms.GroupBox groupBox2; | |
| 22: | private System.Windows.Forms.Label label4; | |
| 23: | private System.Windows.Forms.Label label5; | |
| 24: | private System.Windows.Forms.Label label6; | |
| 25: | private System.Windows.Forms.Label label7; | |
| 26: | private System.Windows.Forms.FontDialog fontDialog1; | |
| 27: | private System.Windows.Forms.ColorDialog colorDialog1; | |
| 28: | private System.Windows.Forms.Label label8; | |
| 29: | private System.Windows.Forms.Label label9; | |
| 30: | private System.Windows.Forms.Label label10; | |
| 31: | private System.Windows.Forms.Label label11; | |
| 32: | private System.Windows.Forms.PictureBox pictureBox1; | |
| 33: | private System.Windows.Forms.Label label12; | |
| 34: | private System.Windows.Forms.Label label13; | |
| 35: | private System.Windows.Forms.GroupBox groupBox3; | |
| 36: | private System.Windows.Forms.Label label14; | |
| 37: | private System.Windows.Forms.Label label15; | |
| 38: | private System.Windows.Forms.Label label16; | |
| 39: | private System.Windows.Forms.CheckBox chkShowBorder; | |
| 40: | private System.Windows.Forms.CheckBox chkShowText; | |
| 41: | private System.Windows.Forms.TextBox txtBarcodeText; | |
| 42: | private System.Windows.Forms.TextBox txtCustomText; | |
| 43: | private System.Windows.Forms.TextBox txtSupplementalText; | |
| 44: | private System.Windows.Forms.ComboBox cboSupplementalTextStyle; | |
| 45: | private System.Windows.Forms.ComboBox cboExceptionType; | |
| 46: | private System.Windows.Forms.ComboBox cboBarcodeColor; | |
| 47: | private System.Windows.Forms.ComboBox cboTextColor; | |
| 48: | private System.Windows.Forms.ComboBox cboRotateAngle; | |
| 49: | private System.Windows.Forms.CheckBox chkIncludeCheckSumDigit; | |
| 50: | private System.Windows.Forms.CheckBox chkSilentMode; | |
| 51: | private System.Windows.Forms.CheckBox chkAntiAlias; | |
| 52: | private System.Windows.Forms.ComboBox cboFileFormat; | |
| 53: | private System.Windows.Forms.ComboBox cboBgColor; | |
| 54: | private System.Windows.Forms.TextBox txtTopText; | |
| 55: | private System.Windows.Forms.ComboBox cboBarcodeType; | |
| 56: | private System.Windows.Forms.ComboBox cboTextFont; | |
| 57: | private System.Windows.Forms.NumericUpDown numMarginLeft; | |
| 58: | private System.Windows.Forms.Label label17; | |
| 59: | private System.Windows.Forms.Label label18; | |
| 60: | private System.Windows.Forms.Label label19; | |
| 61: | private System.Windows.Forms.Label label20; | |
| 62: | private System.Windows.Forms.Label label21; | |
| 63: | private System.Windows.Forms.NumericUpDown numMarginRight; | |
| 64: | private System.Windows.Forms.NumericUpDown numMarginBottom; | |
| 65: | private System.Windows.Forms.NumericUpDown numMarginTop; | |
| 66: | private System.Windows.Forms.NumericUpDown numTextGapBottom; | |
| 67: | private System.Windows.Forms.Label label22; | |
| 68: | private System.Windows.Forms.NumericUpDown numTextGapLeft; | |
| 69: | private System.Windows.Forms.Label label23; | |
| 70: | private System.Windows.Forms.NumericUpDown numTextGapTop; | |
| 71: | private System.Windows.Forms.Label label24; | |
| 72: | private System.Windows.Forms.Label label25; | |
| 73: | private System.Windows.Forms.Label label26; | |
| 74: | private System.Windows.Forms.NumericUpDown numTextGapRight; | |
| 75: | private System.Windows.Forms.NumericUpDown numBarWidth; | |
| 76: | private System.Windows.Forms.NumericUpDown numBarHieght; | |
| 77: | private System.Windows.Forms.Label lblBarcodeType; | |
| 78: | private System.Windows.Forms.Button btnPrint; | |
| 79: | private System.Windows.Forms.Button btnSave; | |
| 80: | private BarcodeNETWorkShop.BarcodeNETWindows barcodeNETWindows1; | |
| 81: | private System.Windows.Forms.CheckBox chkIsRounded; | |
| 82: | ||
| 83: | /// <summary> | |
| 84: | /// Required designer variable. | |
| 85: | /// </summary> | |
| 86: | private System.ComponentModel.Container components = null; | |
| 87: | ||
| 88: | public Form1() | |
| 89: | { | |
| 90: | // | |
| 91: | // Required for Windows Form Designer support | |
| 92: | // | |
| 93: | InitializeComponent(); | |
| 94: | ||
| 95: | // | |
| 96: | // TODO: Add any constructor code after InitializeComponent call | |
| 97: | // | |
| 98: | } | |
| 99: | ||
| 100: | /// <summary> | |
| 101: | /// Clean up any resources being used. | |
| 102: | /// </summary> | |
| 103: | protected override void Dispose( bool disposing ) | |
| 104: | { | |
| 105: | if( disposing ) | |
| 106: | { | |
| 107: | if (components != null) | |
| 108: | { | |
| 109: | components.Dispose(); | |
| 110: | } | |
| 111: | } | |
| 112: | base.Dispose( disposing ); | |
| 113: | } | |
| 114: | ||
| 115: | #region Windows Form Designer generated code | |
| 116: | /// <summary> | |
| 117: | /// Required method for Designer support - do not modify | |
| 118: | /// the contents of this method with the code editor. | |
| 119: | /// </summary> | |
| 120: | private void InitializeComponent() | |
| 121: | { | |
| 122: | System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); | |
| 123: | this.lblBarcodeType = new System.Windows.Forms.Label(); | |
| 124: | this.chkShowBorder = new System.Windows.Forms.CheckBox(); | |
| 125: | this.chkShowText = new System.Windows.Forms.CheckBox(); | |
| 126: | this.txtBarcodeText = new System.Windows.Forms.TextBox(); | |
| 127: | this.label2 = new System.Windows.Forms.Label(); | |
| 128: | this.label3 = new System.Windows.Forms.Label(); | |
| 129: | this.txtCustomText = new System.Windows.Forms.TextBox(); | |
| 130: | this.btnPrint = new System.Windows.Forms.Button(); | |
| 131: | this.groupBox1 = new System.Windows.Forms.GroupBox(); | |
| 132: | this.cboExceptionType = new System.Windows.Forms.ComboBox(); | |
| 133: | this.label10 = new System.Windows.Forms.Label(); | |
| 134: | this.label8 = new System.Windows.Forms.Label(); | |
| 135: | this.cboBarcodeType = new System.Windows.Forms.ComboBox(); | |
| 136: | this.label5 = new System.Windows.Forms.Label(); | |
| 137: | this.cboBarcodeColor = new System.Windows.Forms.ComboBox(); | |
| 138: | this.label6 = new System.Windows.Forms.Label(); | |
| 139: | this.cboTextColor = new System.Windows.Forms.ComboBox(); | |
| 140: | this.cboRotateAngle = new System.Windows.Forms.ComboBox(); | |
| 141: | this.cboSupplementalTextStyle = new System.Windows.Forms.ComboBox(); | |
| 142: | this.label7 = new System.Windows.Forms.Label(); | |
| 143: | this.label12 = new System.Windows.Forms.Label(); | |
| 144: | this.cboTextFont = new System.Windows.Forms.ComboBox(); | |
| 145: | this.label9 = new System.Windows.Forms.Label(); | |
| 146: | this.label14 = new System.Windows.Forms.Label(); | |
| 147: | this.cboFileFormat = new System.Windows.Forms.ComboBox(); | |
| 148: | this.label15 = new System.Windows.Forms.Label(); | |
| 149: | this.cboBgColor = new System.Windows.Forms.ComboBox(); | |
| 150: | this.chkIncludeCheckSumDigit = new System.Windows.Forms.CheckBox(); | |
| 151: | this.chkAntiAlias = new System.Windows.Forms.CheckBox(); | |
| 152: | this.chkSilentMode = new System.Windows.Forms.CheckBox(); | |
| 153: | this.chkIsRounded = new System.Windows.Forms.CheckBox(); | |
| 154: | this.label13 = new System.Windows.Forms.Label(); | |
| 155: | this.txtSupplementalText = new System.Windows.Forms.TextBox(); | |
| 156: | this.label11 = new System.Windows.Forms.Label(); | |
| 157: | this.btnSave = new System.Windows.Forms.Button(); | |
| 158: | this.label4 = new System.Windows.Forms.Label(); | |
| 159: | this.groupBox2 = new System.Windows.Forms.GroupBox(); | |
| 160: | this.barcodeNETWindows1 = new BarcodeNETWorkShop.BarcodeNETWindows(); | |
| 161: | this.fontDialog1 = new System.Windows.Forms.FontDialog(); | |
| 162: | this.colorDialog1 = new System.Windows.Forms.ColorDialog(); | |
| 163: | this.pictureBox1 = new System.Windows.Forms.PictureBox(); | |
| 164: | this.groupBox3 = new System.Windows.Forms.GroupBox(); | |
| 165: | this.numMarginBottom = new System.Windows.Forms.NumericUpDown(); | |
| 166: | this.numMarginTop = new System.Windows.Forms.NumericUpDown(); | |
| 167: | this.label20 = new System.Windows.Forms.Label(); | |
| 168: | this.label21 = new System.Windows.Forms.Label(); | |
| 169: | this.numMarginRight = new System.Windows.Forms.NumericUpDown(); | |
| 170: | this.label16 = new System.Windows.Forms.Label(); | |
| 171: | this.txtTopText = new System.Windows.Forms.TextBox(); | |
| 172: | this.numMarginLeft = new System.Windows.Forms.NumericUpDown(); | |
| 173: | this.label17 = new System.Windows.Forms.Label(); | |
| 174: | this.label18 = new System.Windows.Forms.Label(); | |
| 175: | this.label19 = new System.Windows.Forms.Label(); | |
| 176: | this.numTextGapBottom = new System.Windows.Forms.NumericUpDown(); | |
| 177: | this.label22 = new System.Windows.Forms.Label(); | |
| 178: | this.numTextGapLeft = new System.Windows.Forms.NumericUpDown(); | |
| 179: | this.label23 = new System.Windows.Forms.Label(); | |
| 180: | this.numTextGapTop = new System.Windows.Forms.NumericUpDown(); | |
| 181: | this.label24 = new System.Windows.Forms.Label(); | |
| 182: | this.label25 = new System.Windows.Forms.Label(); | |
| 183: | this.label26 = new System.Windows.Forms.Label(); | |
| 184: | this.numTextGapRight = new System.Windows.Forms.NumericUpDown(); | |
| 185: | this.numBarWidth = new System.Windows.Forms.NumericUpDown(); | |
| 186: | this.numBarHieght = new System.Windows.Forms.NumericUpDown(); | |
| 187: | this.groupBox1.SuspendLayout(); | |
| 188: | this.groupBox2.SuspendLayout(); | |
| 189: | this.groupBox3.SuspendLayout(); | |
| 190: | ((System.ComponentModel.ISupportInitialize)(this.numMarginBottom)).BeginInit(); | |
| 191: | ((System.ComponentModel.ISupportInitialize)(this.numMarginTop)).BeginInit(); | |
| 192: | ((System.ComponentModel.ISupportInitialize)(this.numMarginRight)).BeginInit(); | |
| 193: | ((System.ComponentModel.ISupportInitialize)(this.numMarginLeft)).BeginInit(); | |
| 194: | ((System.ComponentModel.ISupportInitialize)(this.numTextGapBottom)).BeginInit(); | |
| 195: | ((System.ComponentModel.ISupportInitialize)(this.numTextGapLeft)).BeginInit(); | |
| 196: | ((System.ComponentModel.ISupportInitialize)(this.numTextGapTop)).BeginInit(); | |
| 197: | ((System.ComponentModel.ISupportInitialize)(this.numTextGapRight)).BeginInit(); | |
| 198: | ((System.ComponentModel.ISupportInitialize)(this.numBarWidth)).BeginInit(); | |
| 199: | ((System.ComponentModel.ISupportInitialize)(this.numBarHieght)).BeginInit(); | |
| 200: | this.SuspendLayout(); | |
| 201: | // | |
| 202: | // lblBarcodeType | |
| 203: | // | |
| 204: | this.lblBarcodeType.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); | |
| 205: | this.lblBarcodeType.ForeColor = System.Drawing.Color.DarkRed; | |
| 206: | this.lblBarcodeType.Location = new System.Drawing.Point(72, 384); | |
| 207: | this.lblBarcodeType.Name = "lblBarcodeType"; | |
| 208: | this.lblBarcodeType.Size = new System.Drawing.Size(136, 23); | |
| 209: | this.lblBarcodeType.TabIndex = 3; | |
| 210: | this.lblBarcodeType.Text = "Code128B"; | |
| 211: | this.lblBarcodeType.TextAlign = System.Drawing.ContentAlignment.TopCenter; | |
| 212: | // | |
| 213: | // chkShowBorder | |
| 214: | // | |
| 215: | this.chkShowBorder.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 216: | this.chkShowBorder.Location = new System.Drawing.Point(16, 304); | |
| 217: | this.chkShowBorder.Name = "chkShowBorder"; | |
| 218: | this.chkShowBorder.TabIndex = 4; | |
| 219: | this.chkShowBorder.Text = "Show Border"; | |
| 220: | this.chkShowBorder.CheckedChanged += new System.EventHandler(this.OnShowBorderChanged); | |
| 221: | // | |
| 222: | // chkShowText | |
| 223: | // | |
| 224: | this.chkShowText.Checked = true; | |
| 225: | this.chkShowText.CheckState = System.Windows.Forms.CheckState.Checked; | |
| 226: | this.chkShowText.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 227: | this.chkShowText.Location = new System.Drawing.Point(16, 336); | |
| 228: | this.chkShowText.Name = "chkShowText"; | |
| 229: | this.chkShowText.TabIndex = 5; | |
| 230: | this.chkShowText.Text = "Show Text"; | |
| 231: | this.chkShowText.CheckedChanged += new System.EventHandler(this.OnShowTextChanged); | |
| 232: | // | |
| 233: | // txtBarcodeText | |
| 234: | // | |
| 235: | this.txtBarcodeText.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 236: | this.txtBarcodeText.Location = new System.Drawing.Point(120, 24); | |
| 237: | this.txtBarcodeText.MaxLength = 30; | |
| 238: | this.txtBarcodeText.Name = "txtBarcodeText"; | |
| 239: | this.txtBarcodeText.Size = new System.Drawing.Size(120, 22); | |
| 240: | this.txtBarcodeText.TabIndex = 6; | |
| 241: | this.txtBarcodeText.Text = ""; | |
| 242: | this.txtBarcodeText.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtBarcodeText_KeyUp); | |
| 243: | // | |
| 244: | // label2 | |
| 245: | // | |
| 246: | this.label2.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 247: | this.label2.Location = new System.Drawing.Point(16, 24); | |
| 248: | this.label2.Name = "label2"; | |
| 249: | this.label2.Size = new System.Drawing.Size(56, 23); | |
| 250: | this.label2.TabIndex = 7; | |
| 251: | this.label2.Text = "Barcode"; | |
| 252: | // | |
| 253: | // label3 | |
| 254: | // | |
| 255: | this.label3.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 256: | this.label3.Location = new System.Drawing.Point(16, 56); | |
| 257: | this.label3.Name = "label3"; | |
| 258: | this.label3.Size = new System.Drawing.Size(72, 23); | |
| 259: | this.label3.TabIndex = 8; | |
| 260: | this.label3.Text = "Custom Text"; | |
| 261: | // | |
| 262: | // txtCustomText | |
| 263: | // | |
| 264: | this.txtCustomText.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 265: | this.txtCustomText.Location = new System.Drawing.Point(120, 56); | |
| 266: | this.txtCustomText.Name = "txtCustomText"; | |
| 267: | this.txtCustomText.Size = new System.Drawing.Size(120, 22); | |
| 268: | this.txtCustomText.TabIndex = 9; | |
| 269: | this.txtCustomText.Text = ""; | |
| 270: | this.txtCustomText.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtCustomText_KeyUp); | |
| 271: | // | |
| 272: | // btnPrint | |
| 273: | // | |
| 274: | this.btnPrint.BackColor = System.Drawing.SystemColors.ControlLight; | |
| 275: | this.btnPrint.Location = new System.Drawing.Point(56, 432); | |
| 276: | this.btnPrint.Name = "btnPrint"; | |
| 277: | this.btnPrint.TabIndex = 10; | |
| 278: | this.btnPrint.Text = "Print"; | |
| 279: | this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click); | |
| 280: | // | |
| 281: | // groupBox1 | |
| 282: | // | |
| 283: | this.groupBox1.Controls.Add(this.cboExceptionType); | |
| 284: | this.groupBox1.Controls.Add(this.label10); | |
| 285: | this.groupBox1.Controls.Add(this.label8); | |
| 286: | this.groupBox1.Controls.Add(this.cboBarcodeType); | |
| 287: | this.groupBox1.Controls.Add(this.label5); | |
| 288: | this.groupBox1.Controls.Add(this.cboBarcodeColor); | |
| 289: | this.groupBox1.Controls.Add(this.label6); | |
| 290: | this.groupBox1.Controls.Add(this.cboTextColor); | |
| 291: | this.groupBox1.Controls.Add(this.cboRotateAngle); | |
| 292: | this.groupBox1.Controls.Add(this.cboSupplementalTextStyle); | |
| 293: | this.groupBox1.Controls.Add(this.label7); | |
| 294: | this.groupBox1.Controls.Add(this.label12); | |
| 295: | this.groupBox1.Controls.Add(this.cboTextFont); | |
| 296: | this.groupBox1.Controls.Add(this.label9); | |
| 297: | this.groupBox1.Controls.Add(this.label14); | |
| 298: | this.groupBox1.Controls.Add(this.cboFileFormat); | |
| 299: | this.groupBox1.Controls.Add(this.label15); | |
| 300: | this.groupBox1.Controls.Add(this.cboBgColor); | |
| 301: | this.groupBox1.Controls.Add(this.chkShowBorder); | |
| 302: | this.groupBox1.Controls.Add(this.chkIncludeCheckSumDigit); | |
| 303: | this.groupBox1.Controls.Add(this.chkAntiAlias); | |
| 304: | this.groupBox1.Controls.Add(this.chkSilentMode); | |
| 305: | this.groupBox1.Controls.Add(this.chkShowText); | |
| 306: | this.groupBox1.Controls.Add(this.chkIsRounded); | |
| 307: | this.groupBox1.Location = new System.Drawing.Point(296, 64); | |
| 308: | this.groupBox1.Name = "groupBox1"; | |
| 309: | this.groupBox1.Size = new System.Drawing.Size(256, 400); | |
| 310: | this.groupBox1.TabIndex = 12; | |
| 311: | this.groupBox1.TabStop = false; | |
| 312: | // | |
| 313: | // cboExceptionType | |
| 314: | // | |
| 315: | this.cboExceptionType.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 316: | this.cboExceptionType.Location = new System.Drawing.Point(128, 56); | |
| 317: | this.cboExceptionType.Name = "cboExceptionType"; | |
| 318: | this.cboExceptionType.Size = new System.Drawing.Size(112, 20); | |
| 319: | this.cboExceptionType.TabIndex = 18; | |
| 320: | this.cboExceptionType.SelectedIndexChanged += new System.EventHandler(this.cboExceptionType_SelectedIndexChanged); | |
| 321: | // | |
| 322: | // label10 | |
| 323: | // | |
| 324: | this.label10.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 325: | this.label10.Location = new System.Drawing.Point(16, 56); | |
| 326: | this.label10.Name = "label10"; | |
| 327: | this.label10.Size = new System.Drawing.Size(80, 23); | |
| 328: | this.label10.TabIndex = 17; | |
| 329: | this.label10.Text = "Exception Type"; | |
| 330: | // | |
| 331: | // label8 | |
| 332: | // | |
| 333: | this.label8.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 334: | this.label8.Location = new System.Drawing.Point(16, 24); | |
| 335: | this.label8.Name = "label8"; | |
| 336: | this.label8.Size = new System.Drawing.Size(72, 23); | |
| 337: | this.label8.TabIndex = 14; | |
| 338: | this.label8.Text = "Barcode Type"; | |
| 339: | // | |
| 340: | // cboBarcodeType | |
| 341: | // | |
| 342: | this.cboBarcodeType.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 343: | this.cboBarcodeType.Location = new System.Drawing.Point(128, 24); | |
| 344: | this.cboBarcodeType.Name = "cboBarcodeType"; | |
| 345: | this.cboBarcodeType.Size = new System.Drawing.Size(112, 20); | |
| 346: | this.cboBarcodeType.TabIndex = 13; | |
| 347: | this.cboBarcodeType.SelectedIndexChanged += new System.EventHandler(this.cboBarcodeType_SelectedIndexChanged); | |
| 348: | // | |
| 349: | // label5 | |
| 350: | // | |
| 351: | this.label5.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 352: | this.label5.Location = new System.Drawing.Point(16, 88); | |
| 353: | this.label5.Name = "label5"; | |
| 354: | this.label5.Size = new System.Drawing.Size(80, 23); | |
| 355: | this.label5.TabIndex = 12; | |
| 356: | this.label5.Text = "Barcode Color"; | |
| 357: | // | |
| 358: | // cboBarcodeColor | |
| 359: | // | |
| 360: | this.cboBarcodeColor.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 361: | this.cboBarcodeColor.Location = new System.Drawing.Point(128, 88); | |
| 362: | this.cboBarcodeColor.Name = "cboBarcodeColor"; | |
| 363: | this.cboBarcodeColor.Size = new System.Drawing.Size(112, 20); | |
| 364: | this.cboBarcodeColor.TabIndex = 11; | |
| 365: | this.cboBarcodeColor.Text = "Barcode Color"; | |
| 366: | this.cboBarcodeColor.Click += new System.EventHandler(this.cboBarcodeColor_Click); | |
| 367: | // | |
| 368: | // label6 | |
| 369: | // | |
| 370: | this.label6.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 371: | this.label6.Location = new System.Drawing.Point(16, 152); | |
| 372: | this.label6.Name = "label6"; | |
| 373: | this.label6.Size = new System.Drawing.Size(72, 23); | |
| 374: | this.label6.TabIndex = 12; | |
| 375: | this.label6.Text = "Text Color"; | |
| 376: | // | |
| 377: | // cboTextColor | |
| 378: | // | |
| 379: | this.cboTextColor.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 380: | this.cboTextColor.Location = new System.Drawing.Point(128, 152); | |
| 381: | this.cboTextColor.Name = "cboTextColor"; | |
| 382: | this.cboTextColor.Size = new System.Drawing.Size(112, 20); | |
| 383: | this.cboTextColor.TabIndex = 11; | |
| 384: | this.cboTextColor.Text = "Text Color"; | |
| 385: | this.cboTextColor.Click += new System.EventHandler(this.cboTextColor_Click); | |
| 386: | // | |
| 387: | // cboRotateAngle | |
| 388: | // | |
| 389: | this.cboRotateAngle.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 390: | this.cboRotateAngle.Items.AddRange(new object[] { | |
| 391: | "0", | |
| 392: | "90", | |
| 393: | "180", | |
| 394: | "270"}); | |
| 395: | this.cboRotateAngle.Location = new System.Drawing.Point(128, 184); | |
| 396: | this.cboRotateAngle.Name = "cboRotateAngle"; | |
| 397: | this.cboRotateAngle.Size = new System.Drawing.Size(112, 20); | |
| 398: | this.cboRotateAngle.TabIndex = 11; | |
| 399: | this.cboRotateAngle.Text = "Angle"; | |
| 400: | this.cboRotateAngle.SelectedIndexChanged += new System.EventHandler(this.cboRotateAngle_SelectedIndexChanged); | |
| 401: | // | |
| 402: | // cboSupplementalTextStyle | |
| 403: | // | |
| 404: | this.cboSupplementalTextStyle.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 405: | this.cboSupplementalTextStyle.Location = new System.Drawing.Point(128, 248); | |
| 406: | this.cboSupplementalTextStyle.Name = "cboSupplementalTextStyle"; | |
| 407: | this.cboSupplementalTextStyle.Size = new System.Drawing.Size(112, 20); | |
| 408: | this.cboSupplementalTextStyle.TabIndex = 21; | |
| 409: | this.cboSupplementalTextStyle.SelectedIndexChanged += new System.EventHandler(this.cboSupplementalTextStyle_SelectedIndexChanged); | |
| 410: | // | |
| 411: | // label7 | |
| 412: | // | |
| 413: | this.label7.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 414: | this.label7.Location = new System.Drawing.Point(16, 184); | |
| 415: | this.label7.Name = "label7"; | |
| 416: | this.label7.Size = new System.Drawing.Size(72, 23); | |
| 417: | this.label7.TabIndex = 12; | |
| 418: | this.label7.Text = "Rotate"; | |
| 419: | // | |
| 420: | // label12 | |
| 421: | // | |
| 422: | this.label12.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 423: | this.label12.Location = new System.Drawing.Point(16, 248); | |
| 424: | this.label12.Name = "label12"; | |
| 425: | this.label12.TabIndex = 22; | |
| 426: | this.label12.Text = "Supplemental Style"; | |
| 427: | // | |
| 428: | // cboTextFont | |
| 429: | // | |
| 430: | this.cboTextFont.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 431: | this.cboTextFont.Location = new System.Drawing.Point(128, 216); | |
| 432: | this.cboTextFont.Name = "cboTextFont"; | |
| 433: | this.cboTextFont.Size = new System.Drawing.Size(112, 20); | |
| 434: | this.cboTextFont.TabIndex = 16; | |
| 435: | this.cboTextFont.Text = "Text Font"; | |
| 436: | this.cboTextFont.Click += new System.EventHandler(this.cboTextFont_Click); | |
| 437: | // | |
| 438: | // label9 | |
| 439: | // | |
| 440: | this.label9.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 441: | this.label9.Location = new System.Drawing.Point(16, 216); | |
| 442: | this.label9.Name = "label9"; | |
| 443: | this.label9.Size = new System.Drawing.Size(72, 23); | |
| 444: | this.label9.TabIndex = 15; | |
| 445: | this.label9.Text = "Text Font"; | |
| 446: | // | |
| 447: | // label14 | |
| 448: | // | |
| 449: | this.label14.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 450: | this.label14.Location = new System.Drawing.Point(16, 280); | |
| 451: | this.label14.Name = "label14"; | |
| 452: | this.label14.TabIndex = 22; | |
| 453: | this.label14.Text = "File Format"; | |
| 454: | // | |
| 455: | // cboFileFormat | |
| 456: | // | |
| 457: | this.cboFileFormat.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 458: | this.cboFileFormat.Location = new System.Drawing.Point(128, 280); | |
| 459: | this.cboFileFormat.Name = "cboFileFormat"; | |
| 460: | this.cboFileFormat.Size = new System.Drawing.Size(112, 20); | |
| 461: | this.cboFileFormat.TabIndex = 21; | |
| 462: | this.cboFileFormat.SelectedIndexChanged += new System.EventHandler(this.cboFileFormat_SelectedIndexChanged); | |
| 463: | // | |
| 464: | // label15 | |
| 465: | // | |
| 466: | this.label15.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 467: | this.label15.Location = new System.Drawing.Point(16, 120); | |
| 468: | this.label15.Name = "label15"; | |
| 469: | this.label15.Size = new System.Drawing.Size(80, 23); | |
| 470: | this.label15.TabIndex = 12; | |
| 471: | this.label15.Text = "Back Color"; | |
| 472: | // | |
| 473: | // cboBgColor | |
| 474: | // | |
| 475: | this.cboBgColor.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 476: | this.cboBgColor.Location = new System.Drawing.Point(128, 120); | |
| 477: | this.cboBgColor.Name = "cboBgColor"; | |
| 478: | this.cboBgColor.Size = new System.Drawing.Size(112, 20); | |
| 479: | this.cboBgColor.TabIndex = 11; | |
| 480: | this.cboBgColor.Text = "Back Color"; | |
| 481: | this.cboBgColor.Click += new System.EventHandler(this.cboBgColor_Click); | |
| 482: | // | |
| 483: | // chkIncludeCheckSumDigit | |
| 484: | // | |
| 485: | this.chkIncludeCheckSumDigit.Checked = true; | |
| 486: | this.chkIncludeCheckSumDigit.CheckState = System.Windows.Forms.CheckState.Checked; | |
| 487: | this.chkIncludeCheckSumDigit.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 488: | this.chkIncludeCheckSumDigit.Location = new System.Drawing.Point(128, 336); | |
| 489: | this.chkIncludeCheckSumDigit.Name = "chkIncludeCheckSumDigit"; | |
| 490: | this.chkIncludeCheckSumDigit.TabIndex = 5; | |
| 491: | this.chkIncludeCheckSumDigit.Text = "CheckSumDigit"; | |
| 492: | this.chkIncludeCheckSumDigit.CheckedChanged += new System.EventHandler(this.IncludeCheckSumDigit_CheckedChanged); | |
| 493: | // | |
| 494: | // chkAntiAlias | |
| 495: | // | |
| 496: | this.chkAntiAlias.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 497: | this.chkAntiAlias.Location = new System.Drawing.Point(16, 368); | |
| 498: | this.chkAntiAlias.Name = "chkAntiAlias"; | |
| 499: | this.chkAntiAlias.TabIndex = 5; | |
| 500: | this.chkAntiAlias.Text = "Anti Alias"; | |
| 501: | this.chkAntiAlias.CheckedChanged += new System.EventHandler(this.chkAntiAlias_CheckedChanged); | |
| 502: | // | |
| 503: | // chkSilentMode | |
| 504: | // | |
| 505: | this.chkSilentMode.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 506: | this.chkSilentMode.Location = new System.Drawing.Point(128, 304); | |
| 507: | this.chkSilentMode.Name = "chkSilentMode"; | |
| 508: | this.chkSilentMode.TabIndex = 5; | |
| 509: | this.chkSilentMode.Text = "Silent Mode"; | |
| 510: | this.chkSilentMode.CheckedChanged += new System.EventHandler(this.SilentMode_CheckedChanged); | |
| 511: | // | |
| 512: | // chkIsRounded | |
| 513: | // | |
| 514: | this.chkIsRounded.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 515: | this.chkIsRounded.Location = new System.Drawing.Point(128, 368); | |
| 516: | this.chkIsRounded.Name = "chkIsRounded"; | |
| 517: | this.chkIsRounded.TabIndex = 5; | |
| 518: | this.chkIsRounded.Text = "Rounded"; | |
| 519: | this.chkIsRounded.CheckedChanged += new System.EventHandler(this.chkIsRounded_CheckedChanged); | |
| 520: | // | |
| 521: | // label13 | |
| 522: | // | |
| 523: | this.label13.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 524: | this.label13.Location = new System.Drawing.Point(16, 184); | |
| 525: | this.label13.Name = "label13"; | |
| 526: | this.label13.TabIndex = 24; | |
| 527: | this.label13.Text = "Suplemental Text"; | |
| 528: | // | |
| 529: | // txtSupplementalText | |
| 530: | // | |
| 531: | this.txtSupplementalText.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 532: | this.txtSupplementalText.Location = new System.Drawing.Point(120, 184); | |
| 533: | this.txtSupplementalText.Name = "txtSupplementalText"; | |
| 534: | this.txtSupplementalText.Size = new System.Drawing.Size(120, 22); | |
| 535: | this.txtSupplementalText.TabIndex = 23; | |
| 536: | this.txtSupplementalText.Text = ""; | |
| 537: | this.txtSupplementalText.KeyUp += new System.Windows.Forms.KeyEventHandler(this.SupplementalText_KeyUp); | |
| 538: | // | |
| 539: | // label11 | |
| 540: | // | |
| 541: | this.label11.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 542: | this.label11.Location = new System.Drawing.Point(16, 152); | |
| 543: | this.label11.Name = "label11"; | |
| 544: | this.label11.TabIndex = 19; | |
| 545: | this.label11.Text = "Bar Width"; | |
| 546: | // | |
| 547: | // btnSave | |
| 548: | // | |
| 549: | this.btnSave.BackColor = System.Drawing.SystemColors.ControlLight; | |
| 550: | this.btnSave.Location = new System.Drawing.Point(176, 432); | |
| 551: | this.btnSave.Name = "btnSave"; | |
| 552: | this.btnSave.TabIndex = 10; | |
| 553: | this.btnSave.Text = "Save"; | |
| 554: | this.btnSave.Click += new System.EventHandler(this.btnSave_Click); | |
| 555: | // | |
| 556: | // label4 | |
| 557: | // | |
| 558: | this.label4.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 559: | this.label4.Location = new System.Drawing.Point(16, 120); | |
| 560: | this.label4.Name = "label4"; | |
| 561: | this.label4.Size = new System.Drawing.Size(72, 23); | |
| 562: | this.label4.TabIndex = 8; | |
| 563: | this.label4.Text = "Hieght"; | |
| 564: | // | |
| 565: | // groupBox2 | |
| 566: | // | |
| 567: | this.groupBox2.Controls.Add(this.barcodeNETWindows1); | |
| 568: | this.groupBox2.Location = new System.Drawing.Point(16, 64); | |
| 569: | this.groupBox2.Name = "groupBox2"; | |
| 570: | this.groupBox2.Size = new System.Drawing.Size(264, 304); | |
| 571: | this.groupBox2.TabIndex = 13; | |
| 572: | this.groupBox2.TabStop = false; | |
| 573: | this.groupBox2.Text = "Show Area"; | |
| 574: | // | |
| 575: | // barcodeNETWindows1 | |
| 576: | // | |
| 577: | this.barcodeNETWindows1.AntiAlias = false; | |
| 578: | this.barcodeNETWindows1.BarcodeColor = System.Drawing.Color.Black; | |
| 579: | this.barcodeNETWindows1.BarcodeGap = new BarcodeNETWorkShop.Core.TextGap(1, 1, 1, 1); | |
| 580: | this.barcodeNETWindows1.BarcodeMargins = new BarcodeNETWorkShop.Core.MarginBound(10, 10, 10, 10); | |
| 581: | this.barcodeNETWindows1.BarcodeText = "BarcodeNET"; | |
| 582: | this.barcodeNETWindows1.BarcodeType = BarcodeNETWorkShop.Core.BARCODE_TYPE.CODE128B; | |
| 583: | this.barcodeNETWindows1.BarHeight = 60; | |
| 584: | this.barcodeNETWindows1.BarWidth = 1; | |
| 585: | this.barcodeNETWindows1.BgColor = System.Drawing.Color.White; | |
| 586: | this.barcodeNETWindows1.CustomText = ""; | |
| 587: | this.barcodeNETWindows1.ExceptionType = BarcodeNETWorkShop.Core.EXCEPTION_TYPE.DEFAULT_MSG; | |
| 588: | this.barcodeNETWindows1.FileFormat = BarcodeNETWorkShop.Core.FILE_FORMAT.JPG; | |
| 589: | this.barcodeNETWindows1.IncludeChecksumDigit = true; | |
| 590: | this.barcodeNETWindows1.IsRounded = false; | |
| 591: | this.barcodeNETWindows1.Location = new System.Drawing.Point(48, 104); | |
| 592: | this.barcodeNETWindows1.Name = "barcodeNETWindows1"; | |
| 593: | this.barcodeNETWindows1.RotateAngle = BarcodeNETWorkShop.Core.ROTATE_ANGLE.R0; | |
| 594: | this.barcodeNETWindows1.ShowBarcodeText = true; | |
| 595: | this.barcodeNETWindows1.ShowBorder = false; | |
| 596: | this.barcodeNETWindows1.SilentMode = false; | |
| 597: | this.barcodeNETWindows1.Size = new System.Drawing.Size(167, 95); | |
| 598: | this.barcodeNETWindows1.SupplementalText = ""; | |
| 599: | this.barcodeNETWindows1.SupplementalTextStyle = BarcodeNETWorkShop.Core.SUPPLEMENTAL_TEXT_STYLE.TOP; | |
| 600: | this.barcodeNETWindows1.TabIndex = 0; | |
| 601: | this.barcodeNETWindows1.TextColor = System.Drawing.Color.Black; | |
| 602: | this.barcodeNETWindows1.TextFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); | |
| 603: | this.barcodeNETWindows1.TopText = ""; | |
| 604: | // | |
| 605: | // pictureBox1 | |
| 606: | // | |
| 607: | this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); | |
| 608: | this.pictureBox1.Location = new System.Drawing.Point(16, 8); | |
| 609: | this.pictureBox1.Name = "pictureBox1"; | |
| 610: | this.pictureBox1.Size = new System.Drawing.Size(552, 50); | |
| 611: | this.pictureBox1.TabIndex = 14; | |
| 612: | this.pictureBox1.TabStop = false; | |
| 613: | // | |
| 614: | // groupBox3 | |
| 615: | // | |
| 616: | this.groupBox3.Controls.Add(this.numMarginBottom); | |
| 617: | this.groupBox3.Controls.Add(this.numMarginTop); | |
| 618: | this.groupBox3.Controls.Add(this.label20); | |
| 619: | this.groupBox3.Controls.Add(this.label21); | |
| 620: | this.groupBox3.Controls.Add(this.numMarginRight); | |
| 621: | this.groupBox3.Controls.Add(this.label2); | |
| 622: | this.groupBox3.Controls.Add(this.label3); | |
| 623: | this.groupBox3.Controls.Add(this.txtCustomText); | |
| 624: | this.groupBox3.Controls.Add(this.label4); | |
| 625: | this.groupBox3.Controls.Add(this.label13); | |
| 626: | this.groupBox3.Controls.Add(this.txtSupplementalText); | |
| 627: | this.groupBox3.Controls.Add(this.label11); | |
| 628: | this.groupBox3.Controls.Add(this.txtBarcodeText); | |
| 629: | this.groupBox3.Controls.Add(this.label16); | |
| 630: | this.groupBox3.Controls.Add(this.txtTopText); | |
| 631: | this.groupBox3.Controls.Add(this.numMarginLeft); | |
| 632: | this.groupBox3.Controls.Add(this.label17); | |
| 633: | this.groupBox3.Controls.Add(this.label18); | |
| 634: | this.groupBox3.Controls.Add(this.label19); | |
| 635: | this.groupBox3.Controls.Add(this.numTextGapBottom); | |
| 636: | this.groupBox3.Controls.Add(this.label22); | |
| 637: | this.groupBox3.Controls.Add(this.numTextGapLeft); | |
| 638: | this.groupBox3.Controls.Add(this.label23); | |
| 639: | this.groupBox3.Controls.Add(this.numTextGapTop); | |
| 640: | this.groupBox3.Controls.Add(this.label24); | |
| 641: | this.groupBox3.Controls.Add(this.label25); | |
| 642: | this.groupBox3.Controls.Add(this.label26); | |
| 643: | this.groupBox3.Controls.Add(this.numTextGapRight); | |
| 644: | this.groupBox3.Controls.Add(this.numBarWidth); | |
| 645: | this.groupBox3.Controls.Add(this.numBarHieght); | |
| 646: | this.groupBox3.Location = new System.Drawing.Point(576, 64); | |
| 647: | this.groupBox3.Name = "groupBox3"; | |
| 648: | this.groupBox3.Size = new System.Drawing.Size(256, 400); | |
| 649: | this.groupBox3.TabIndex = 15; | |
| 650: | this.groupBox3.TabStop = false; | |
| 651: | // | |
| 652: | // numMarginBottom | |
| 653: | // | |
| 654: | this.numMarginBottom.Location = new System.Drawing.Point(200, 248); | |
| 655: | this.numMarginBottom.Minimum = new System.Decimal(new int[] { | |
| 656: | 1, | |
| 657: | 0, | |
| 658: | 0, | |
| 659: | 0}); | |
| 660: | this.numMarginBottom.Name = "numMarginBottom"; | |
| 661: | this.numMarginBottom.Size = new System.Drawing.Size(40, 22); | |
| 662: | this.numMarginBottom.TabIndex = 29; | |
| 663: | this.numMarginBottom.Value = new System.Decimal(new int[] { | |
| 664: | 10, | |
| 665: | 0, | |
| 666: | 0, | |
| 667: | 0}); | |
| 668: | this.numMarginBottom.ValueChanged += new System.EventHandler(this.numMarginBottom_ValueChanged); | |
| 669: | // | |
| 670: | // numMarginTop | |
| 671: | // | |
| 672: | this.numMarginTop.Location = new System.Drawing.Point(96, 248); | |
| 673: | this.numMarginTop.Minimum = new System.Decimal(new int[] { | |
| 674: | 1, | |
| 675: | 0, | |
| 676: | 0, | |
| 677: | 0}); | |
| 678: | this.numMarginTop.Name = "numMarginTop"; | |
| 679: | this.numMarginTop.Size = new System.Drawing.Size(40, 22); | |
| 680: | this.numMarginTop.TabIndex = 28; | |
| 681: | this.numMarginTop.Value = new System.Decimal(new int[] { | |
| 682: | 10, | |
| 683: | 0, | |
| 684: | 0, | |
| 685: | 0}); | |
| 686: | this.numMarginTop.ValueChanged += new System.EventHandler(this.numMarginTop_ValueChanged); | |
| 687: | // | |
| 688: | // label20 | |
| 689: | // | |
| 690: | this.label20.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 691: | this.label20.Location = new System.Drawing.Point(64, 248); | |
| 692: | this.label20.Name = "label20"; | |
| 693: | this.label20.Size = new System.Drawing.Size(24, 16); | |
| 694: | this.label20.TabIndex = 26; | |
| 695: | this.label20.Text = "Top"; | |
| 696: | // | |
| 697: | // label21 | |
| 698: | // | |
| 699: | this.label21.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 700: | this.label21.Location = new System.Drawing.Point(160, 248); | |
| 701: | this.label21.Name = "label21"; | |
| 702: | this.label21.Size = new System.Drawing.Size(40, 16); | |
| 703: | this.label21.TabIndex = 27; | |
| 704: | this.label21.Text = "Bottom"; | |
| 705: | // | |
| 706: | // numMarginRight | |
| 707: | // | |
| 708: | this.numMarginRight.Location = new System.Drawing.Point(200, 216); | |
| 709: | this.numMarginRight.Minimum = new System.Decimal(new int[] { | |
| 710: | 1, | |
| 711: | 0, | |
| 712: | 0, | |
| 713: | 0}); | |
| 714: | this.numMarginRight.Name = "numMarginRight"; | |
| 715: | this.numMarginRight.Size = new System.Drawing.Size(40, 22); | |
| 716: | this.numMarginRight.TabIndex = 25; | |
| 717: | this.numMarginRight.Value = new System.Decimal(new int[] { | |
| 718: | 10, | |
| 719: | 0, | |
| 720: | 0, | |
| 721: | 0}); | |
| 722: | this.numMarginRight.ValueChanged += new System.EventHandler(this.numMarginRight_ValueChanged); | |
| 723: | // | |
| 724: | // label16 | |
| 725: | // | |
| 726: | this.label16.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 727: | this.label16.Location = new System.Drawing.Point(16, 88); | |
| 728: | this.label16.Name = "label16"; | |
| 729: | this.label16.Size = new System.Drawing.Size(72, 23); | |
| 730: | this.label16.TabIndex = 8; | |
| 731: | this.label16.Text = "Top Text"; | |
| 732: | // | |
| 733: | // txtTopText | |
| 734: | // | |
| 735: | this.txtTopText.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 736: | this.txtTopText.Location = new System.Drawing.Point(120, 88); | |
| 737: | this.txtTopText.Name = "txtTopText"; | |
| 738: | this.txtTopText.Size = new System.Drawing.Size(120, 22); | |
| 739: | this.txtTopText.TabIndex = 9; | |
| 740: | this.txtTopText.Text = ""; | |
| 741: | this.txtTopText.TextChanged += new System.EventHandler(this.txtTopText_TextChanged); | |
| 742: | // | |
| 743: | // numMarginLeft | |
| 744: | // | |
| 745: | this.numMarginLeft.Location = new System.Drawing.Point(96, 216); | |
| 746: | this.numMarginLeft.Minimum = new System.Decimal(new int[] { | |
| 747: | 1, | |
| 748: | 0, | |
| 749: | 0, | |
| 750: | 0}); | |
| 751: | this.numMarginLeft.Name = "numMarginLeft"; | |
| 752: | this.numMarginLeft.Size = new System.Drawing.Size(40, 22); | |
| 753: | this.numMarginLeft.TabIndex = 23; | |
| 754: | this.numMarginLeft.Value = new System.Decimal(new int[] { | |
| 755: | 10, | |
| 756: | 0, | |
| 757: | 0, | |
| 758: | 0}); | |
| 759: | this.numMarginLeft.ValueChanged += new System.EventHandler(this.numMarginLeft_ValueChanged); | |
| 760: | // | |
| 761: | // label17 | |
| 762: | // | |
| 763: | this.label17.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 764: | this.label17.Location = new System.Drawing.Point(16, 216); | |
| 765: | this.label17.Name = "label17"; | |
| 766: | this.label17.Size = new System.Drawing.Size(48, 23); | |
| 767: | this.label17.TabIndex = 19; | |
| 768: | this.label17.Text = "Margin"; | |
| 769: | // | |
| 770: | // label18 | |
| 771: | // | |
| 772: | this.label18.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 773: | this.label18.Location = new System.Drawing.Point(64, 216); | |
| 774: | this.label18.Name = "label18"; | |
| 775: | this.label18.Size = new System.Drawing.Size(24, 16); | |
| 776: | this.label18.TabIndex = 19; | |
| 777: | this.label18.Text = "Left"; | |
| 778: | // | |
| 779: | // label19 | |
| 780: | // | |
| 781: | this.label19.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 782: | this.label19.Location = new System.Drawing.Point(160, 216); | |
| 783: | this.label19.Name = "label19"; | |
| 784: | this.label19.Size = new System.Drawing.Size(32, 16); | |
| 785: | this.label19.TabIndex = 19; | |
| 786: | this.label19.Text = "Right"; | |
| 787: | // | |
| 788: | // numTextGapBottom | |
| 789: | // | |
| 790: | this.numTextGapBottom.Location = new System.Drawing.Point(200, 328); | |
| 791: | this.numTextGapBottom.Minimum = new System.Decimal(new int[] { | |
| 792: | 1, | |
| 793: | 0, | |
| 794: | 0, | |
| 795: | 0}); | |
| 796: | this.numTextGapBottom.Name = "numTextGapBottom"; | |
| 797: | this.numTextGapBottom.Size = new System.Drawing.Size(40, 22); | |
| 798: | this.numTextGapBottom.TabIndex = 29; | |
| 799: | this.numTextGapBottom.Value = new System.Decimal(new int[] { | |
| 800: | 1, | |
| 801: | 0, | |
| 802: | 0, | |
| 803: | 0}); | |
| 804: | this.numTextGapBottom.ValueChanged += new System.EventHandler(this.numTextGapBottom_ValueChanged); | |
| 805: | // | |
| 806: | // label22 | |
| 807: | // | |
| 808: | this.label22.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 809: | this.label22.Location = new System.Drawing.Point(160, 296); | |
| 810: | this.label22.Name = "label22"; | |
| 811: | this.label22.Size = new System.Drawing.Size(32, 16); | |
| 812: | this.label22.TabIndex = 19; | |
| 813: | this.label22.Text = "Right"; | |
| 814: | // | |
| 815: | // numTextGapLeft | |
| 816: | // | |
| 817: | this.numTextGapLeft.Location = new System.Drawing.Point(96, 296); | |
| 818: | this.numTextGapLeft.Minimum = new System.Decimal(new int[] { | |
| 819: | 1, | |
| 820: | 0, | |
| 821: | 0, | |
| 822: | 0}); | |
| 823: | this.numTextGapLeft.Name = "numTextGapLeft"; | |
| 824: | this.numTextGapLeft.Size = new System.Drawing.Size(40, 22); | |
| 825: | this.numTextGapLeft.TabIndex = 23; | |
| 826: | this.numTextGapLeft.Value = new System.Decimal(new int[] { | |
| 827: | 1, | |
| 828: | 0, | |
| 829: | 0, | |
| 830: | 0}); | |
| 831: | this.numTextGapLeft.ValueChanged += new System.EventHandler(this.numTextGapLeft_ValueChanged); | |
| 832: | // | |
| 833: | // label23 | |
| 834: | // | |
| 835: | this.label23.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 836: | this.label23.Location = new System.Drawing.Point(16, 296); | |
| 837: | this.label23.Name = "label23"; | |
| 838: | this.label23.Size = new System.Drawing.Size(48, 23); | |
| 839: | this.label23.TabIndex = 19; | |
| 840: | this.label23.Text = "Text Gap"; | |
| 841: | // | |
| 842: | // numTextGapTop | |
| 843: | // | |
| 844: | this.numTextGapTop.Location = new System.Drawing.Point(96, 328); | |
| 845: | this.numTextGapTop.Minimum = new System.Decimal(new int[] { | |
| 846: | 1, | |
| 847: | 0, | |
| 848: | 0, | |
| 849: | 0}); | |
| 850: | this.numTextGapTop.Name = "numTextGapTop"; | |
| 851: | this.numTextGapTop.Size = new System.Drawing.Size(40, 22); | |
| 852: | this.numTextGapTop.TabIndex = 28; | |
| 853: | this.numTextGapTop.Value = new System.Decimal(new int[] { | |
| 854: | 1, | |
| 855: | 0, | |
| 856: | 0, | |
| 857: | 0}); | |
| 858: | this.numTextGapTop.ValueChanged += new System.EventHandler(this.numTextGapTop_ValueChanged); | |
| 859: | // | |
| 860: | // label24 | |
| 861: | // | |
| 862: | this.label24.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 863: | this.label24.Location = new System.Drawing.Point(64, 328); | |
| 864: | this.label24.Name = "label24"; | |
| 865: | this.label24.Size = new System.Drawing.Size(24, 16); | |
| 866: | this.label24.TabIndex = 26; | |
| 867: | this.label24.Text = "Top"; | |
| 868: | // | |
| 869: | // label25 | |
| 870: | // | |
| 871: | this.label25.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 872: | this.label25.Location = new System.Drawing.Point(160, 328); | |
| 873: | this.label25.Name = "label25"; | |
| 874: | this.label25.Size = new System.Drawing.Size(40, 16); | |
| 875: | this.label25.TabIndex = 27; | |
| 876: | this.label25.Text = "Bottom"; | |
| 877: | // | |
| 878: | // label26 | |
| 879: | // | |
| 880: | this.label26.ForeColor = System.Drawing.SystemColors.Desktop; | |
| 881: | this.label26.Location = new System.Drawing.Point(64, 296); | |
| 882: | this.label26.Name = "label26"; | |
| 883: | this.label26.Size = new System.Drawing.Size(24, 16); | |
| 884: | this.label26.TabIndex = 19; | |
| 885: | this.label26.Text = "Left"; | |
| 886: | // | |
| 887: | // numTextGapRight | |
| 888: | // | |
| 889: | this.numTextGapRight.Location = new System.Drawing.Point(200, 296); | |
| 890: | this.numTextGapRight.Minimum = new System.Decimal(new int[] { | |
| 891: | 1, | |
| 892: | 0, | |
| 893: | 0, | |
| 894: | 0}); | |
| 895: | this.numTextGapRight.Name = "numTextGapRight"; | |
| 896: | this.numTextGapRight.Size = new System.Drawing.Size(40, 22); | |
| 897: | this.numTextGapRight.TabIndex = 25; | |
| 898: | this.numTextGapRight.Value = new System.Decimal(new int[] { | |
| 899: | 1, | |
| 900: | 0, | |
| 901: | 0, | |
| 902: | 0}); | |
| 903: | this.numTextGapRight.ValueChanged += new System.EventHandler(this.numTextGapRight_ValueChanged); | |
| 904: | // | |
| 905: | // numBarWidth | |
| 906: | // | |
| 907: | this.numBarWidth.Location = new System.Drawing.Point(120, 152); | |
| 908: | this.numBarWidth.Maximum = new System.Decimal(new int[] { | |
| 909: | 3, | |
| 910: | 0, | |
| 911: | 0, | |
| 912: | 0}); | |
| 913: | this.numBarWidth.Minimum = new System.Decimal(new int[] { | |
| 914: | 1, | |
| 915: | 0, | |
| 916: | 0, | |
| 917: | 0}); | |
| 918: | this.numBarWidth.Name = "numBarWidth"; | |
| 919: | this.numBarWidth.Size = new System.Drawing.Size(40, 22); | |
| 920: | this.numBarWidth.TabIndex = 29; | |
| 921: | this.numBarWidth.Value = new System.Decimal(new int[] { | |
| 922: | 1, | |
| 923: | 0, | |
| 924: | 0, | |
| 925: | 0}); | |
| 926: | this.numBarWidth.ValueChanged += new System.EventHandler(this.numBarWidth_ValueChanged); | |
| 927: | // | |
| 928: | // numBarHieght | |
| 929: | // | |
| 930: | this.numBarHieght.Location = new System.Drawing.Point(120, 120); | |
| 931: | this.numBarHieght.Maximum = new System.Decimal(new int[] { | |
| 932: | 200, | |
| 933: | 0, | |
| 934: | 0, | |
| 935: | 0}); | |
| 936: | this.numBarHieght.Minimum = new System.Decimal(new int[] { | |
| 937: | 10, | |
| 938: | 0, | |
| 939: | 0, | |
| 940: | 0}); | |
| 941: | this.numBarHieght.Name = "numBarHieght"; | |
| 942: | this.numBarHieght.Size = new System.Drawing.Size(40, 22); | |
| 943: | this.numBarHieght.TabIndex = 29; | |
| 944: | this.numBarHieght.Value = new System.Decimal(new int[] { | |
| 945: | 60, | |
| 946: | 0, | |
| 947: | 0, | |
| 948: | 0}); | |
| 949: | this.numBarHieght.ValueChanged += new System.EventHandler(this.numBarHieght_ValueChanged); | |
| 950: | // | |
| 951: | // Form1 | |
| 952: | // | |
| 953: | this.AutoScaleBaseSize = new System.Drawing.Size(5, 15); | |
| 954: | this.BackColor = System.Drawing.SystemColors.ControlLightLight; | |
| 955: | this.ClientSize = new System.Drawing.Size(848, 478); | |
| 956: | this.Controls.Add(this.groupBox3); | |
| 957: | this.Controls.Add(this.pictureBox1); | |
| 958: | this.Controls.Add(this.groupBox2); | |
| 959: | this.Controls.Add(this.groupBox1); | |
| 960: | this.Controls.Add(this.lblBarcodeType); | |
| 961: | this.Controls.Add(this.btnPrint); | |
| 962: | this.Controls.Add(this.btnSave); | |
| 963: | this.Name = "Form1"; | |
| 964: | this.Text = "Form1"; | |
| 965: | this.Load += new System.EventHandler(this.Form1_Load); | |
| 966: | this.groupBox1.ResumeLayout(false); | |
| 967: | this.groupBox2.ResumeLayout(false); | |
| 968: | this.groupBox3.ResumeLayout(false); | |
| 969: | ((System.ComponentModel.ISupportInitialize)(this.numMarginBottom)).EndInit(); | |
| 970: | ((System.ComponentModel.ISupportInitialize)(this.numMarginTop)).EndInit(); | |
| 971: | ((System.ComponentModel.ISupportInitialize)(this.numMarginRight)).EndInit(); | |
| 972: | ((System.ComponentModel.ISupportInitialize)(this.numMarginLeft)).EndInit(); | |
| 973: | ((System.ComponentModel.ISupportInitialize)(this.numTextGapBottom)).EndInit(); | |
| 974: | ((System.ComponentModel.ISupportInitialize)(this.numTextGapLeft)).EndInit(); | |
| 975: | ((System.ComponentModel.ISupportInitialize)(this.numTextGapTop)).EndInit(); | |
| 976: | ((System.ComponentModel.ISupportInitialize)(this.numTextGapRight)).EndInit(); | |
| 977: | ((System.ComponentModel.ISupportInitialize)(this.numBarWidth)).EndInit(); | |
| 978: | ((System.ComponentModel.ISupportInitialize)(this.numBarHieght)).EndInit(); | |
| 979: | this.ResumeLayout(false); | |
| 980: | ||
| 981: | } | |
| 982: | #endregion | |
| 983: | ||
| 984: | /// <summary> | |
| 985: | /// The main entry point for the application. | |
| 986: | /// </summary> | |
| 987: | [STAThread] | |
| 988: | static void Main() | |
| 989: | { | |
| 990: | Application.Run(new Form1()); | |
| 991: | } | |
| 992: | ||
| 993: | private void barcodeNETWindows1_Load(object sender, System.EventArgs e) | |
| 994: | { | |
| 995: | ||
| 996: | } | |
| 997: | ||
| 998: | private void OnShowBorderChanged(object sender, System.EventArgs e) | |
| 999: | { | |
| 1000: | barcodeNETWindows1.ShowBorder=((CheckBox)sender).Checked; | |
| 1001: | this.Refresh(); | |
| 1002: | } | |
| 1003: | ||
| 1004: | private void OnShowTextChanged(object sender, System.EventArgs e) | |
| 1005: | { | |
| 1006: | barcodeNETWindows1.ShowBarcodeText=((CheckBox)sender).Checked; | |
| 1007: | this.Refresh(); | |
| 1008: | } | |
| 1009: | ||
| 1010: | private void pd_PrintPage(object sender, PrintPageEventArgs ev ) | |
| 1011: | { | |
| 1012: | ||
| 1013: | for (int i=0 ;i <8;i=i+2) | |
| 1014: | { | |
| 1015: | ev.Graphics.DrawImage(barcodeNETWindows1.GetBarcodeBitmap(), 100*i, i*barcodeNETWindows1.BarHeight); | |
| 1016: | } | |
| 1017: | return; | |
| 1018: | } | |
| 1019: | ||
| 1020: | private void IncludeCheckSumDigit_CheckedChanged(object sender, System.EventArgs e) | |
| 1021: | { | |
| 1022: | barcodeNETWindows1.IncludeChecksumDigit=((CheckBox)sender).Checked; | |
| 1023: | this |