context: // Laser Labels:
  // Patient,Insurance Company,Custom,Birthday
  //
  // By Bill MacWilliams     Kapricorn Systems Inc.
  //
  //
  // Code is broken up into Common section and a section for each Tab
  //
  // Some code is copied from other sections of OpenDental
  //
  // Report was designed in response to Client requests for more types of sheet labels
  // with more selection choices.
  //
  // Last modification Date: 12/29/2007
  //
  
  
  
  using System;
  using System.Collections;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Text;
  using System.Windows.Forms;
  using OpenDentBusiness;
  using OpenDental.UI;
  using System.Drawing.Printing;
  using System.Collections.Generic;
  using System.Globalization;
  using System.IO;
  using System.Text.RegularExpressions;
  using Microsoft.Win32;
  using CodeBase;
  
  
  namespace OpenDental {
  	public partial class FormRpLaserLabels:System.Windows.Forms.Form {
  		private DataTable AddrTable;
  		private DataTable RptAddrTable;
  		private int pagesPrinted;
  		private int labelsPrinted;
  		private int insRange;
  		private int idxCus;
  		private string[] colName = new string[20];
  		private OpenDental.UI.FormPrintPreview printPreview;
  		private PrintDocument pd;
  		private OpenDental.UI.Button butOK;
  		private TabPage tabCustomLabels;
  		private TabPage tabInsCo;
  		private TabPage tabPage1;
  		private ListBox listProviders;
  		private CheckBox checkAllProviders;
  		private CheckBox checkActiveOnly;
  		private CheckBox checkGroupByFamily;
  		private TextBox textEndName;
  		private TextBox textStartName;
  		private Label labAllProviders;
  		private Label labOnlyActive;
  		private Label labGroupByFamily;
  		private Label labEndName;
  		private Label labStartName;
  		private TabControl tabLabelSetup;
  		private Label labLabelStart;
  		private Label labEndingName;
  		private RadioButton radioButRange;
  		private RadioButton radioButSingle;
  		private TextBox textInsCoStart;
  		private Label labInsCoEnd;
  		private TextBox textInsCoEnd;
  		private Label labInsCoStart;
  		private Label labInsCoSingle;
  		private NumericUpDown numericInsCoSingle;
  		private OpenDental.UI.Button butEndName;
  		private OpenDental.UI.Button butStartName;
  		private ListBox listInsCo;
  		private OpenDental.UI.Button butCancel;
  		private Label labZip;
  		private Label labState;
  		private Label labCity;
  		private Label labCustAddr2;
  		private Label labCustAddr1;
  		private Label labCustName;
  		private Label labLabelCount;
  		private TextBox textCusZip;
  		private TextBox textCusState;
  		private TextBox textCusCity;
  		private TextBox textCusAddr2;
  		private TextBox textCusAddr1;
  		private TextBox textCusName;
  		private NumericUpDown numericCusCount;
  		private ListBox listCusNames;
  		private int iLabelStart=0;
  		private OpenDental.UI.Button butCusAdd;
  		private System.Windows.Forms.PictureBox[] picLabel = new System.Windows.Forms.PictureBox[30];
  		private ListBox listStatus;
  		private Panel panLabels;
  		private OpenDental.UI.Button butCusRemove;
  		private Label labInsCoStartAddr;
  		private Label labInsCoEndAddr;
  		private OpenDental.UI.Button butInsCoEnd;
  		private TabPage tabBirthday;
  		private Label labBirthdayTo;
  		private Label labBirthdayFrom;
  		private CheckBox checkBirthdayActive;
  		private TextBox textBirthdayFrom;
  		private TextBox textBirthdayTo;
  		private GroupBox groupBox1;
  		private OpenDental.UI.Button butBirthdayLeft;
  		private OpenDental.UI.Button butBirthdayRight;
  		private OpenDental.UI.Button butBirthdayMonth;
  		private OpenDental.UI.Button butInsCoStart;
  
  		public FormRpLaserLabels() {
  			InitializeComponent();
  			Lan.F(this);
  		}
  
  		private void InitializeComponent() {
  			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpLaserLabels));
  			this.tabCustomLabels = new System.Windows.Forms.TabPage();
  			this.butCusRemove = new OpenDental.UI.Button();
  			this.butCusAdd = new OpenDental.UI.Button();
  			this.listCusNames = new System.Windows.Forms.ListBox();
  			this.numericCusCount = new System.Windows.Forms.NumericUpDown();
  			this.textCusZip = new System.Windows.Forms.TextBox();
  			this.textCusState = new System.Windows.Forms.TextBox();
  			this.textCusCity = new System.Windows.Forms.TextBox();
  			this.textCusAddr2 = new System.Windows.Forms.TextBox();
  			this.textCusAddr1 = new System.Windows.Forms.TextBox();
  			this.textCusName = new System.Windows.Forms.TextBox();
  			this.labLabelCount = new System.Windows.Forms.Label();
  			this.labZip = new System.Windows.Forms.Label();
  			this.labState = new System.Windows.Forms.Label();
  			this.labCity = new System.Windows.Forms.Label();
  			this.labCustAddr2 = new System.Windows.Forms.Label();
  			this.labCustAddr1 = new System.Windows.Forms.Label();
  			this.labCustName = new System.Windows.Forms.Label();
  			this.tabInsCo = new System.Windows.Forms.TabPage();
  			this.butInsCoEnd = new OpenDental.UI.Button();
  			this.butInsCoStart = new OpenDental.UI.Button();
  			this.labInsCoEndAddr = new System.Windows.Forms.Label();
  			this.labInsCoStartAddr = new System.Windows.Forms.Label();
  			this.labInsCoSingle = new System.Windows.Forms.Label();
  			this.numericInsCoSingle = new System.Windows.Forms.NumericUpDown();
  			this.labInsCoEnd = new System.Windows.Forms.Label();
  			this.textInsCoEnd = new System.Windows.Forms.TextBox();
  			this.labInsCoStart = new System.Windows.Forms.Label();
  			this.textInsCoStart = new System.Windows.Forms.TextBox();
  			this.radioButRange = new System.Windows.Forms.RadioButton();
  			this.radioButSingle = new System.Windows.Forms.RadioButton();
  			this.listInsCo = new System.Windows.Forms.ListBox();
  			this.tabPage1 = new System.Windows.Forms.TabPage();
  			this.labEndingName = new System.Windows.Forms.Label();
  			this.listProviders = new System.Windows.Forms.ListBox();
  			this.checkAllProviders = new System.Windows.Forms.CheckBox();
  			this.checkActiveOnly = new System.Windows.Forms.CheckBox();
  			this.checkGroupByFamily = new System.Windows.Forms.CheckBox();
  			this.butEndName = new OpenDental.UI.Button();
  			this.textEndName = new System.Windows.Forms.TextBox();
  			this.textStartName = new System.Windows.Forms.TextBox();
  			this.butStartName = new OpenDental.UI.Button();
  			this.labAllProviders = new System.Windows.Forms.Label();
  			this.labOnlyActive = new System.Windows.Forms.Label();
  			this.labGroupByFamily = new System.Windows.Forms.Label();
  			this.labEndName = new System.Windows.Forms.Label();
  			this.labStartName = new System.Windows.Forms.Label();
  			this.listStatus = new System.Windows.Forms.ListBox();
  			this.tabLabelSetup = new System.Windows.Forms.TabControl();
  			this.tabBirthday = new System.Windows.Forms.TabPage();
  			this.groupBox1 = new System.Windows.Forms.GroupBox();
  			this.butBirthdayMonth = new OpenDental.UI.Button();
  			this.butBirthdayRight = new OpenDental.UI.Button();
  			this.butBirthdayLeft = new OpenDental.UI.Button();
  			this.textBirthdayTo = new System.Windows.Forms.TextBox();
  			this.labBirthdayFrom = new System.Windows.Forms.Label();
  			this.textBirthdayFrom = new System.Windows.Forms.TextBox();
  			this.labBirthdayTo = new System.Windows.Forms.Label();
  			this.checkBirthdayActive = new System.Windows.Forms.CheckBox();
  			this.labLabelStart = new System.Windows.Forms.Label();
  			this.panLabels = new System.Windows.Forms.Panel();
  			this.butCancel = new OpenDental.UI.Button();
  			this.butOK = new OpenDental.UI.Button();
  			this.tabCustomLabels.SuspendLayout();
  			((System.ComponentModel.ISupportInitialize)(this.numericCusCount)).BeginInit();
  			this.tabInsCo.SuspendLayout();
  			((System.ComponentModel.ISupportInitialize)(this.numericInsCoSingle)).BeginInit();
  			this.tabPage1.SuspendLayout();
  			this.tabLabelSetup.SuspendLayout();
  			this.tabBirthday.SuspendLayout();
  			this.groupBox1.SuspendLayout();
  			this.SuspendLayout();
  			// 
  			// tabCustomLabels
  			// 
  			this.tabCustomLabels.Controls.Add(this.butCusRemove);
  			this.tabCustomLabels.Controls.Add(this.butCusAdd);
  			this.tabCustomLabels.Controls.Add(this.listCusNames);
  			this.tabCustomLabels.Controls.Add(this.numericCusCount);
  			this.tabCustomLabels.Controls.Add(this.textCusZip);
  			this.tabCustomLabels.Controls.Add(this.textCusState);
  			this.tabCustomLabels.Controls.Add(this.textCusCity);
  			this.tabCustomLabels.Controls.Add(this.textCusAddr2);
  			this.tabCustomLabels.Controls.Add(this.textCusAddr1);
  			this.tabCustomLabels.Controls.Add(this.textCusName);
  			this.tabCustomLabels.Controls.Add(this.labLabelCount);
  			this.tabCustomLabels.Controls.Add(this.labZip);
  			this.tabCustomLabels.Controls.Add(this.labState);
  			this.tabCustomLabels.Controls.Add(this.labCity);
  			this.tabCustomLabels.Controls.Add(this.labCustAddr2);
  			this.tabCustomLabels.Controls.Add(this.labCustAddr1);
  			this.tabCustomLabels.Controls.Add(this.labCustName);
  			this.tabCustomLabels.Location = new System.Drawing.Point(4,22);
  			this.tabCustomLabels.Name = "tabCustomLabels";
  			this.tabCustomLabels.Padding = new System.Windows.Forms.Padding(3);
  			this.tabCustomLabels.Size = new System.Drawing.Size(391,319);
  			this.tabCustomLabels.TabIndex = 2;
  			this.tabCustomLabels.Text = "Custom Labels";
  			this.tabCustomLabels.UseVisualStyleBackColor = true;
  			// 
  			// butCusRemove
  			// 
  			this.butCusRemove.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butCusRemove.Autosize = true;
  			this.butCusRemove.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butCusRemove.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butCusRemove.CornerRadius = 4F;
  			this.butCusRemove.Location = new System.Drawing.Point(262,164);
  			this.butCusRemove.Name = "butCusRemove";
  			this.butCusRemove.Size = new System.Drawing.Size(75,23);
  			this.butCusRemove.TabIndex = 15;
  			this.butCusRemove.Text = "Remove";
  			this.butCusRemove.UseVisualStyleBackColor = true;
  			this.butCusRemove.Visible = false;
  			this.butCusRemove.Click += new System.EventHandler(this.butCusRemove_Click);
  			// 
  			// butCusAdd
  			// 
  			this.butCusAdd.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butCusAdd.Autosize = true;
  			this.butCusAdd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butCusAdd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butCusAdd.CornerRadius = 4F;
  			this.butCusAdd.Location = new System.Drawing.Point(177,164);
  			this.butCusAdd.Name = "butCusAdd";
  			this.butCusAdd.Size = new System.Drawing.Size(75,23);
  			this.butCusAdd.TabIndex = 14;
  			this.butCusAdd.Text = "&Add";
  			this.butCusAdd.UseVisualStyleBackColor = true;
  			this.butCusAdd.Click += new System.EventHandler(this.butCusAdd_Click);
  			// 
  			// listCusNames
  			// 
  			this.listCusNames.FormattingEnabled = true;
  			this.listCusNames.HorizontalScrollbar = true;
  			this.listCusNames.Location = new System.Drawing.Point(7,191);
  			this.listCusNames.Name = "listCusNames";
  			this.listCusNames.Size = new System.Drawing.Size(330,121);
  			this.listCusNames.TabIndex = 16;
  			this.listCusNames.SelectedIndexChanged += new System.EventHandler(this.listCusNames_SelectedIndexChanged);
  			// 
  			// numericCusCount
  			// 
  			this.numericCusCount.Location = new System.Drawing.Point(79,141);
  			this.numericCusCount.Minimum = new decimal(new int[] {
              1,
              0,
              0,
              0});
  			this.numericCusCount.Name = "numericCusCount";
  			this.numericCusCount.Size = new System.Drawing.Size(120,20);
  			this.numericCusCount.TabIndex = 13;
  			this.numericCusCount.Value = new decimal(new int[] {
              1,
              0,
              0,
              0});
  			// 
  			// textCusZip
  			// 
  			this.textCusZip.Location = new System.Drawing.Point(159,112);
  			this.textCusZip.MaxLength = 10;
  			this.textCusZip.Name = "textCusZip";
  			this.textCusZip.Size = new System.Drawing.Size(100,20);
  			this.textCusZip.TabIndex = 12;
  			this.textCusZip.WordWrap = false;
  			// 
  			// textCusState
  			// 
  			this.textCusState.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
  			this.textCusState.Location = new System.Drawing.Point(79,112);
  			this.textCusState.MaxLength = 2;
  			this.textCusState.Name = "textCusState";
  			this.textCusState.Size = new System.Drawing.Size(37,20);
  			this.textCusState.TabIndex = 11;
  			this.textCusState.WordWrap = false;
  			// 
  			// textCusCity
  			// 
  			this.textCusCity.Location = new System.Drawing.Point(79,87);
  			this.textCusCity.MaxLength = 40;
  			this.textCusCity.Name = "textCusCity";
  			this.textCusCity.Size = new System.Drawing.Size(258,20);
  			this.textCusCity.TabIndex = 10;
  			this.textCusCity.WordWrap = false;
  			// 
  			// textCusAddr2
  			// 
  			this.textCusAddr2.Location = new System.Drawing.Point(79,62);
  			this.textCusAddr2.MaxLength = 40;
  			this.textCusAddr2.Name = "textCusAddr2";
  			this.textCusAddr2.Size = new System.Drawing.Size(258,20);
  			this.textCusAddr2.TabIndex = 9;
  			this.textCusAddr2.WordWrap = false;
  			// 
  			// textCusAddr1
  			// 
  			this.textCusAddr1.Location = new System.Drawing.Point(79,37);
  			this.textCusAddr1.MaxLength = 40;
  			this.textCusAddr1.Name = "textCusAddr1";
  			this.textCusAddr1.Size = new System.Drawing.Size(258,20);
  			this.textCusAddr1.TabIndex = 8;
  			this.textCusAddr1.WordWrap = false;
  			// 
  			// textCusName
  			// 
  			this.textCusName.Location = new System.Drawing.Point(79,12);
  			this.textCusName.MaxLength = 40;
  			this.textCusName.Name = "textCusName";
  			this.textCusName.Size = new System.Drawing.Size(258,20);
  			this.textCusName.TabIndex = 7;
  			this.textCusName.WordWrap = false;
  			// 
  			// labLabelCount
  			// 
  			this.labLabelCount.AutoSize = true;
  			this.labLabelCount.Location = new System.Drawing.Point(8,149);
  			this.labLabelCount.Name = "labLabelCount";
  			this.labLabelCount.Size = new System.Drawing.Size(64,13);
  			this.labLabelCount.TabIndex = 6;
  			this.labLabelCount.Text = "Label Count";
  			// 
  			// labZip
  			// 
  			this.labZip.AutoSize = true;
  			this.labZip.Location = new System.Drawing.Point(127,119);
  			this.labZip.Name = "labZip";
  			this.labZip.Size = new System.Drawing.Size(25,13);
  			this.labZip.TabIndex = 5;
  			this.labZip.Text = "Zip:";
  			// 
  			// labState
  			// 
  			this.labState.AutoSize = true;
  			this.labState.Location = new System.Drawing.Point(37,119);
  			this.labState.Name = "labState";
  			this.labState.Size = new System.Drawing.Size(35,13);
  			this.labState.TabIndex = 4;
  			this.labState.Text = "State:";
  			// 
  			// labCity
  			// 
  			this.labCity.AutoSize = true;
  			this.labCity.Location = new System.Drawing.Point(45,94);
  			this.labCity.Name = "labCity";
  			this.labCity.Size = new System.Drawing.Size(27,13);
  			this.labCity.TabIndex = 3;
  			this.labCity.Text = "City:";
  			// 
  			// labCustAddr2
  			// 
  			this.labCustAddr2.AutoSize = true;
  			this.labCustAddr2.Location = new System.Drawing.Point(18,69);
  			this.labCustAddr2.Name = "labCustAddr2";
  			this.labCustAddr2.Size = new System.Drawing.Size(54,13);
  			this.labCustAddr2.TabIndex = 2;
  			this.labCustAddr2.Text = "Address2:";
  			// 
  			// labCustAddr1
  			// 
  			this.labCustAddr1.AutoSize = true;
  			this.labCustAddr1.Location = new System.Drawing.Point(18,44);
  			this.labCustAddr1.Name = "labCustAddr1";
  			this.labCustAddr1.Size = new System.Drawing.Size(54,13);
  			this.labCustAddr1.TabIndex = 1;
  			this.labCustAddr1.Text = "Address1:";
  			// 
  			// labCustName
  			// 
  			this.labCustName.AutoSize = true;
  			this.labCustName.Location = new System.Drawing.Point(34,19);
  			this.labCustName.Name = "labCustName";
  			this.labCustName.Size = new System.Drawing.Size(38,13);
  			this.labCustName.TabIndex = 0;
  			this.labCustName.Text = "Name:";
  			// 
  			// tabInsCo
  			// 
  			this.tabInsCo.Controls.Add(this.butInsCoEnd);
  			this.tabInsCo.Controls.Add(this.butInsCoStart);
  			this.tabInsCo.Controls.Add(this.labInsCoEndAddr);
  			this.tabInsCo.Controls.Add(this.labInsCoStartAddr);
  			this.tabInsCo.Controls.Add(this.labInsCoSingle);
  			this.tabInsCo.Controls.Add(this.numericInsCoSingle);
  			this.tabInsCo.Controls.Add(this.labInsCoEnd);
  			this.tabInsCo.Controls.Add(this.textInsCoEnd);
  			this.tabInsCo.Controls.Add(this.labInsCoStart);
  			this.tabInsCo.Controls.Add(this.textInsCoStart);
  			this.tabInsCo.Controls.Add(this.radioButRange);
  			this.tabInsCo.Controls.Add(this.radioButSingle);
  			this.tabInsCo.Location = new System.Drawing.Point(4,22);
  			this.tabInsCo.Name = "tabInsCo";
  			this.tabInsCo.Padding = new System.Windows.Forms.Padding(3);
  			this.tabInsCo.Size = new System.Drawing.Size(391,319);
  			this.tabInsCo.TabIndex = 1;
  			this.tabInsCo.Text = "Insurance Company Labels";
  			this.tabInsCo.UseVisualStyleBackColor = true;
  			// 
  			// butInsCoEnd
  			// 
  			this.butInsCoEnd.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butInsCoEnd.Autosize = true;
  			this.butInsCoEnd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butInsCoEnd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butInsCoEnd.CornerRadius = 4F;
  			this.butInsCoEnd.Location = new System.Drawing.Point(301,84);
  			this.butInsCoEnd.Name = "butInsCoEnd";
  			this.butInsCoEnd.Size = new System.Drawing.Size(21,20);
  			this.butInsCoEnd.TabIndex = 12;
  			this.butInsCoEnd.Text = "...";
  			this.butInsCoEnd.UseVisualStyleBackColor = true;
  			this.butInsCoEnd.Visible = false;
  			this.butInsCoEnd.Click += new System.EventHandler(this.butInsCo_Click);
  			// 
  			// butInsCoStart
  			// 
  			this.butInsCoStart.AdjustImageLocation = new System.Drawing.Point(0,0);
  			this.butInsCoStart.Autosize = true;
  			this.butInsCoStart.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle;
  			this.butInsCoStart.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver;
  			this.butInsCoStart.CornerRadius = 4F;
  			this.butInsCoStart.Location = new System.Drawing.Point(301,34);
  			this.butInsCoStart.Name = "butInsCoStart";
  			this.butInsCoStart.Size = new System.Drawing.Size(21,20);
  			this.butInsCoStart.TabIndex = 11;
  			this.butInsCoStart.Text = "...";
  			this.butInsCoStart.UseVisualStyleBackColor = true;
  			this.butInsCoStart.Click += new System.EventHandler(this.butInsCo_Click);
  			// 
  			// labInsCoEndAddr
  			// 
  			this.labInsCoEndAddr.Location = new System.Drawing.Point(4,108);
  			this.labInsCoEndAddr.Name = "labInsCoEndAddr";
  			this.labInsCoEndAddr.Size = new System.Drawing.Size(333,13);
  			this.labInsCoEndAddr.TabIndex = 10;
  			this.labInsCoEndAddr.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// labInsCoStartAddr
  			// 
  			this.labInsCoStartAddr.Enabled = false;
  			this.labInsCoStartAddr.Location = new System.Drawing.Point(6,59);
  			this.labInsCoStartAddr.Name = "labInsCoStartAddr";
  			this.labInsCoStartAddr.Size = new System.Drawing.Size(331,13);
  			this.labInsCoStartAddr.TabIndex = 9;
  			this.labInsCoStartAddr.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  			// 
  			// labInsCoSingle
  			// 
  			this.labInsCoSingle.AutoSize = true;
  			this.labInsCoSingle.Location = new System.Drawing.Point(36,91);
  			this.labInsCoSingle.Name = "labInsCoSingle";
  			this.labInsCoSingle.Size = new System.Drawing.Size(67,13);
  			this.labInsCoSingle.TabIndex = 7;
  			this.labInsCoSingle.Text = "Label Count:";
  			// 
  			// numericInsCoSingle
  			// 
  			this.numericInsCoSingle.Location = new System.Drawing.Point(113,84);
  			this.numericInsCoSingle.Maximum = new decimal(new int[] {
              90,
              0,
              0,
              0});
  			this.numericInsCoSingle.Minimum = new decimal(new int[] {
              1,
              0,
              0,
              0});
  			this.numericInsCoSingle.Name = "numericInsCoSingle";
  			this.numericInsCoSingle.Size = new System.Drawing.Size(120,20);
  			this.numericInsCoSingle.TabIndex = 6;
  			this.numericInsCoSingle.Value = new decimal(new int[] {
              1,
              0,
              0,
              0});
  			// 
  			// labInsCoEnd
  			// 
  			this.labInsCoEnd.AutoSize = true;
  			this.labInsCoEnd.Location = new System.Drawing.Point(43,91);
  			this.labInsCoEnd.Name = "labInsCoEnd";
  			this.labInsCoEnd.Size = new System.Drawing.Size(60,13);
  			this.labInsCoEnd.TabIndex = 5;
  			this.labInsCoEnd.Text = "End Name:";
  			this.labInsCoEnd.Visible = false;
  			// 
  			// textInsCoEnd
  			// 
  			this.textInsCoEnd.Location = new System.Drawing.Point(113,84);
  			this.textInsCoEnd.Name = "textInsCoEnd";
  			this.textInsCoEnd.Size = new System.Drawing.Size(181,20);
  			this.textInsCoEnd.TabIndex = 4;
  			this.textInsCoEnd.Visible = false;
  			this.textInsCoEnd.WordWrap = false;
  			this.textInsCoEnd.Click += new System.EventHandler(this.textInsCoEnd_Click);
  			// 
  			// labInsCoStart
  			// 
  			this.labInsCoStart.AutoSize = true;
  			this.labInsCoStart.Location = new System.Drawing.Point(40,41);
  			this.labInsCoStart.Name = "labInsCoStart";
  			this.labInsCoStart.Size = new System.Drawing.Size(63,13);
  			this.labInsCoStart.TabIndex = 3;
  			this.labInsCoStart.Text = "Start Name:";
  			// 
  			// textInsCoStart
  			// 
  			this.textInsCoStart.Location = new System.Drawing.Point(113,34);
  			this.textInsCoStart.Name = "textInsCoStart";
  			this.textInsCoStart.Size = new System.Drawing.Size(181,20);
  			this.textInsCoStart.TabIndex = 2;
  			this.textInsCoStart.WordWrap = false;
  			this.textInsCoStart.Click += new System.EventHandler(this.textInsCoStart_Click);
  			// 
  			// radioButRange
  			// 
  			this.radioButRange.AutoSize = true;
  			this.radioButRange.Location = new System.Drawing.Point(170,10);
  			this.radioButRange.Name = "radioButRange";
  			this.radioButRange.Size = new System.Drawing.Size(124,17);
  			this.radioButRange.TabIndex = 1;
  			this.radioButRange.Text = "Range of Companies";
  			this.radioButRange.UseVisualStyleBackColor = true;
  			this.radioButRange.CheckedChanged += new System.EventHandler(this.radioButRange_CheckedChanged);
  			// 
  			// radioButSingle
  			// 
  			this.radioButSingle.AutoSize = true;
  			this.radioButSingle.Checked = true;
  			this.radioButSingle.Location = new System.Drawing.Point(40,10);
  			this.radioButSingle.Name = "radioButSingle";
  			this.radioButSingle.Size = new System.Drawing.Size(101,17);
  			this.radioButSingle.TabIndex = 0;
  			this.radioButSingle.TabStop = true;
  			this.radioButSingle.Text = "Single Company";
  			this.radioButSingle.UseVisualStyleBackColor = true;
  			this.radioButSingle.CheckedChanged += new System.EventHandler(this.radioButSingle_CheckedChanged);
  			// 
  			// listInsCo
  			// 
  			this.listInsCo.Location = new System.Drawing.Point(0,0);
  			this.listInsCo.Name = "listInsCo";
  			this.listInsCo.Size = new System.Drawing.Size(120,95);
  			this.listInsCo.TabIndex = 0;
  			// 
  			// tabPage1
  			// 
  			this.tabPage1.Controls.Add(this.labEndingName);
  			this.tabPage1.Controls.Add(this.listProviders);
  			this.tabPage1.Controls.Add(this.checkAllProviders);
  			this.tabPage1.Controls.Add(this.checkActiveOnly);
  			this.tabPage1.Controls.Add(this.checkGroupByFamily);
  			this.tabPage1.Controls.Add(this.butEndName);
  			this.tabPage1.Controls.Add(this.textEndName);
  			this.tabPage1.Controls.Add(this.textStartName);
  			this.tabPage1.Controls.Add(this.butStartName);
  			this.tabPage1.Controls.Add(this.labAllProviders);
  			this.tabPage1.Controls.Add(this.labOnlyActive);
  			this.tabPage1.Controls.Add(this.labGroupByFamily);
  			this.tabPage1.Controls.Add(this.labEndName);
  			this.tabPage1.Controls.Add(this.labStartName);
  			this.tabPage1.Location = new System.Drawing.Point(4,22);
  			this.tabPage1.Name = "tabPage1";
  			this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
  			this.tabPage1.Size = new System.Drawing.Size(391,319);
  			this.tabPage1.TabIndex = 0;
  			this.tabPage1.Text = "Patient Labels";
  			this.tabPage1.UseVisualStyleBackColor = true;
  			// 
  			// labEndingName
  			// 
  			this.labEndingName.AutoSize = true;
  			this.labEndingName.Location = new System.Drawing.Point(22,46);
  			this.labEndingName.Name = "labEndingName";
  			this.labEndingName.Size = new System.Drawing.Size(87,13);
  			this.labEndingName.TabIndex = 15;
  			this.labEndingName.Text = "End Name (L, F):";
  			// 
  			// listProviders
  			// 
  			this.listProviders.FormattingEnabled = true;
  
gt: 			this.listProviders.Location = new System.Drawing.Point(143,152);