context: using System ;
  using System.Drawing ;
  using System.Drawing.Imaging ;
  using System.Collections ;
  using System.ComponentModel ;
  using System.Windows.Forms ;
  using System.Data ;
  using UIComponents ;
  
  namespace Tripodmaps {
  	/// <summary>
  	/// Summary description for Form1.
  	/// </summary>
      public class frmPropertyFinder : System.Windows.Forms.Form
      {
          private UIComponents.XPPanelGroup xpPanelGroup1;
  		private UIComponents.XPPanel xpNewLandProperties ;
          private UIComponents.XPPanel xpNewBuildingProperties;
  		private UIComponents.ImageSet MediaItemImageSet ;
          private UIComponents.ImageSet purpleGlyphsImageSet;
          private System.Windows.Forms.ImageList imageList1;
          private System.Windows.Forms.ImageList imageList2;
  		private UIComponents.TextStyle HeaderStyle ;
  		private UIComponents.TextStyle TypeStyle ;
          private UIComponents.TextStyle SectionHeaderStyle;
          private DataGridView dtgrdBuildingProperties;
          private DataGridView dtgrdLandProperties;
          private Label label2;
          private NumericUpDown numericUpDown2;
          private Button button3;
          private Button button4;
          private Label label1;
          private NumericUpDown numericUpDown1;
          private Button button1;
          private Button button2;
  		private System.ComponentModel.IContainer components ;
          private XPPanel xppnlMyMessages;
          private Label label11;
          private NumericUpDown numNumberToDisplay;
          private Button cmdNextTen;
          private Button cmdPrevious;
          private DataGridView dtgrdMyMessages;
          private XPPanel xppnlFind;
          private XPPanel xpMyProperties;
          private Label label3;
          private NumericUpDown numericUpDown3;
          private Button button5;
          private Button button6;
          private DataGridView dtgrdMyProperties;
          private string errMessage = "";
  
          public frmPropertyFinder()
          {
  			//
  			// Required for Windows Form Designer support
  			//
  			InitializeComponent() ;
  		}
  
  		/// <summary>
  		/// Clean up any resources being used.
  		/// </summary>
          protected override void Dispose(bool disposing)
          {
              if (disposing)
              {
                  if (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.components = new System.ComponentModel.Container();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
              System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPropertyFinder));
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
              System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
              this.HeaderStyle = new UIComponents.TextStyle();
              this.TypeStyle = new UIComponents.TextStyle();
              this.SectionHeaderStyle = new UIComponents.TextStyle();
              this.xpPanelGroup1 = new UIComponents.XPPanelGroup();
              this.xpMyProperties = new UIComponents.XPPanel(234);
              this.label3 = new System.Windows.Forms.Label();
              this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
              this.button5 = new System.Windows.Forms.Button();
              this.button6 = new System.Windows.Forms.Button();
              this.dtgrdMyProperties = new System.Windows.Forms.DataGridView();
              this.MediaItemImageSet = new UIComponents.ImageSet();
              this.xppnlMyMessages = new UIComponents.XPPanel(208);
              this.purpleGlyphsImageSet = new UIComponents.ImageSet();
              this.label11 = new System.Windows.Forms.Label();
              this.numNumberToDisplay = new System.Windows.Forms.NumericUpDown();
              this.cmdNextTen = new System.Windows.Forms.Button();
              this.cmdPrevious = new System.Windows.Forms.Button();
              this.dtgrdMyMessages = new System.Windows.Forms.DataGridView();
              this.xppnlFind = new UIComponents.XPPanel(418);
              this.xpNewBuildingProperties = new UIComponents.XPPanel(222);
              this.label2 = new System.Windows.Forms.Label();
              this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
              this.button3 = new System.Windows.Forms.Button();
              this.button4 = new System.Windows.Forms.Button();
              this.dtgrdBuildingProperties = new System.Windows.Forms.DataGridView();
              this.xpNewLandProperties = new UIComponents.XPPanel(223);
              this.label1 = new System.Windows.Forms.Label();
              this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
              this.button1 = new System.Windows.Forms.Button();
              this.button2 = new System.Windows.Forms.Button();
              this.dtgrdLandProperties = new System.Windows.Forms.DataGridView();
              this.imageList1 = new System.Windows.Forms.ImageList(this.components);
              this.imageList2 = new System.Windows.Forms.ImageList(this.components);
              ((System.ComponentModel.ISupportInitialize)(this.xpPanelGroup1)).BeginInit();
              this.xpPanelGroup1.SuspendLayout();
              this.xpMyProperties.SuspendLayout();
              ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
              ((System.ComponentModel.ISupportInitialize)(this.dtgrdMyProperties)).BeginInit();
              this.xppnlMyMessages.SuspendLayout();
              ((System.ComponentModel.ISupportInitialize)(this.numNumberToDisplay)).BeginInit();
              ((System.ComponentModel.ISupportInitialize)(this.dtgrdMyMessages)).BeginInit();
              this.xpNewBuildingProperties.SuspendLayout();
              ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
              ((System.ComponentModel.ISupportInitialize)(this.dtgrdBuildingProperties)).BeginInit();
              this.xpNewLandProperties.SuspendLayout();
              ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
              ((System.ComponentModel.ISupportInitialize)(this.dtgrdLandProperties)).BeginInit();
              this.SuspendLayout();
              // 
              // HeaderStyle
              // 
              this.HeaderStyle.BackColor = System.Drawing.Color.Transparent;
              this.HeaderStyle.Description = "";
              this.HeaderStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
              this.HeaderStyle.HorzAlign = System.Drawing.StringAlignment.Near;
              this.HeaderStyle.ImageSet = null;
              this.HeaderStyle.Indent = 0;
              this.HeaderStyle.SpacingAdjustment = new System.Drawing.Size(0, 0);
              this.HeaderStyle.TextColor = System.Drawing.Color.Empty;
              this.HeaderStyle.VertAlign = System.Drawing.StringAlignment.Center;
              // 
              // TypeStyle
              // 
              this.TypeStyle.BackColor = System.Drawing.Color.Transparent;
              this.TypeStyle.Description = "";
              this.TypeStyle.Font = null;
              this.TypeStyle.HorzAlign = System.Drawing.StringAlignment.Near;
              this.TypeStyle.ImageSet = null;
              this.TypeStyle.Indent = 0;
              this.TypeStyle.SpacingAdjustment = new System.Drawing.Size(-4, 0);
              this.TypeStyle.TextColor = System.Drawing.Color.Empty;
              this.TypeStyle.VertAlign = System.Drawing.StringAlignment.Center;
              // 
              // SectionHeaderStyle
              // 
              this.SectionHeaderStyle.BackColor = System.Drawing.Color.Transparent;
              this.SectionHeaderStyle.Description = "";
              this.SectionHeaderStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
              this.SectionHeaderStyle.HorzAlign = System.Drawing.StringAlignment.Near;
              this.SectionHeaderStyle.ImageSet = null;
              this.SectionHeaderStyle.Indent = 0;
              this.SectionHeaderStyle.SpacingAdjustment = new System.Drawing.Size(2, 0);
              this.SectionHeaderStyle.TextColor = System.Drawing.Color.White;
              this.SectionHeaderStyle.VertAlign = System.Drawing.StringAlignment.Center;
              // 
              // xpPanelGroup1
              // 
              this.xpPanelGroup1.AutoScroll = true;
              this.xpPanelGroup1.BackColor = System.Drawing.Color.Transparent;
              this.xpPanelGroup1.Controls.Add(this.xpMyProperties);
              this.xpPanelGroup1.Controls.Add(this.xppnlMyMessages);
              this.xpPanelGroup1.Controls.Add(this.xppnlFind);
              this.xpPanelGroup1.Controls.Add(this.xpNewBuildingProperties);
              this.xpPanelGroup1.Controls.Add(this.xpNewLandProperties);
              this.xpPanelGroup1.Dock = System.Windows.Forms.DockStyle.Fill;
              this.xpPanelGroup1.Location = new System.Drawing.Point(0, 0);
              this.xpPanelGroup1.Name = "xpPanelGroup1";
              this.xpPanelGroup1.PanelGradient = ((UIComponents.GradientColor)(resources.GetObject("xpPanelGroup1.PanelGradient")));
              this.xpPanelGroup1.Size = new System.Drawing.Size(357, 570);
              this.xpPanelGroup1.TabIndex = 4;
              // 
              // xpMyProperties
              // 
              this.xpMyProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                          | System.Windows.Forms.AnchorStyles.Right)));
              this.xpMyProperties.BackColor = System.Drawing.Color.Transparent;
              this.xpMyProperties.Caption = "My Properties";
              this.xpMyProperties.CaptionCornerType = ((UIComponents.CornerType)((UIComponents.CornerType.TopLeft | UIComponents.CornerType.TopRight)));
              this.xpMyProperties.CaptionGradient.End = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(213)))), ((int)(((byte)(247)))));
              this.xpMyProperties.CaptionGradient.Start = System.Drawing.Color.White;
              this.xpMyProperties.CaptionGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
              this.xpMyProperties.CaptionUnderline = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
              this.xpMyProperties.CollapsedGlyphs.ImageSet = null;
              this.xpMyProperties.Controls.Add(this.label3);
              this.xpMyProperties.Controls.Add(this.numericUpDown3);
              this.xpMyProperties.Controls.Add(this.button5);
              this.xpMyProperties.Controls.Add(this.button6);
              this.xpMyProperties.Controls.Add(this.dtgrdMyProperties);
              this.xpMyProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold);
              this.xpMyProperties.ForeColor = System.Drawing.SystemColors.WindowText;
              this.xpMyProperties.HorzAlignment = System.Drawing.StringAlignment.Near;
              this.xpMyProperties.ImageItems.Highlight = 0;
              this.xpMyProperties.ImageItems.ImageSet = this.MediaItemImageSet;
              this.xpMyProperties.ImageItems.Normal = 0;
              this.xpMyProperties.ImageItems.Pressed = 0;
              this.xpMyProperties.Location = new System.Drawing.Point(8, 248);
              this.xpMyProperties.Name = "xpMyProperties";
              this.xpMyProperties.PanelGradient.End = System.Drawing.Color.LightGray;
              this.xpMyProperties.PanelGradient.Start = System.Drawing.Color.LightGray;
              this.xpMyProperties.PanelGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
              this.xpMyProperties.PanelState = UIComponents.XPPanelState.Collapsed;
              this.xpMyProperties.Size = new System.Drawing.Size(341, 52);
              this.xpMyProperties.TabIndex = 7;
              this.xpMyProperties.TextColors.Foreground = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(93)))), ((int)(((byte)(198)))));
              this.xpMyProperties.TextHighlightColors.Foreground = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(142)))), ((int)(((byte)(255)))));
              this.xpMyProperties.VertAlignment = System.Drawing.StringAlignment.Center;
              this.xpMyProperties.XPPanelStyle = UIComponents.XPPanelStyle.WindowsXP;
              // 
              // label3
              // 
              this.label3.AutoSize = true;
  
gt:             this.label3.Location = new System.Drawing.Point(193, 65);