All pastes #262943 Raw Edit

Stuff

public text v1 · immutable
·published 2006-12-01 00:58 UTC
rendered paste body
using System;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

class HostScanner {
   public static void Main() {
      Application.Run( new MainApps());
   }
}

class MainApps : Form {
   DataGridView appgrd;
   DataTable  	apptbl;
   DataColumn 	appclm, appcln;
   //Button    	appbtn;
   
   public MainApps() {
      appgrd = new DataGridView();
      apptbl = new DataTable( "Testing Table" );
      appclm = new DataColumn( "CustomerID" );
      appcln = new DataColumn( "Customer Age" );
      
      //appgrd.Name = "DataGrids";
      //appgrd.Size = new Size( this.Size.Width, this.Size.Height );
      //appgrd.HeaderForeColor = SystemColors.ControlText;
      //appgrd.TabIndex = 0;
      apptbl.Columns.Add( appclm );
      apptbl.Columns.Add( appcln );
      
      appgrd.DataSource = apptbl;
    
      this.Controls.Add( appgrd );
   }
}