通过c#连结oracle数据库(二)

原创 2001年10月15日 09:02:00

/// </summary> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

private void InitializeComponent()

{

this.label4 = new System.Windows.Forms.Label();

this.BtnExit = new System.Windows.Forms.Button();

this.label1 = new System.Windows.Forms.Label();

this.label2 = new System.Windows.Forms.Label();

this.label3 = new System.Windows.Forms.Label();

this.BtnEdit = new System.Windows.Forms.Button();

this.BtnSave = new System.Windows.Forms.Button();

this.BtnDelete = new System.Windows.Forms.Button();

this.TxtESal = new System.Windows.Forms.TextBox();

this.TxtEmpNo = new System.Windows.Forms.TextBox();

this.TxtEName = new System.Windows.Forms.TextBox();

this.BtnAddNew = new System.Windows.Forms.Button();

this.TxtDeptNo = new System.Windows.Forms.TextBox();

this.SuspendLayout();

//

// label4

//

this.label4.AutoSize = true;

this.label4.Location = new System.Drawing.Point(104, 160);

this.label4.Name = "label4";

this.label4.Size = new System.Drawing.Size(59, 14);

this.label4.TabIndex = 3;

this.label4.Text = "Dept No :";

//

// BtnExit

//

this.BtnExit.Location = new System.Drawing.Point(280, 256);

this.BtnExit.Name = "BtnExit";

this.BtnExit.Size = new System.Drawing.Size(90, 32);

this.BtnExit.TabIndex = 12;

this.BtnExit.Text = "E&xit";

this.BtnExit.Click += new System.EventHandler(this.BtnExit_Click);

//

// label1

//

this.label1.AutoSize = true;

this.label1.Location = new System.Drawing.Point(104, 64);

this.label1.Name = "label1";

this.label1.Size = new System.Drawing.Size(58, 14);

this.label1.TabIndex = 0;

this.label1.Text = "Emp No :";

//

// label2

//

this.label2.AutoSize = true;

this.label2.Location = new System.Drawing.Point(104, 96);

this.label2.Name = "label2";

this.label2.Size = new System.Drawing.Size(75, 14);

this.label2.TabIndex = 1;

this.label2.Text = "Emp Name :";

//

// label3

//

this.label3.AutoSize = true;

this.label3.Location = new System.Drawing.Point(104, 128);

this.label3.Name = "label3";

this.label3.Size = new System.Drawing.Size(78, 14);

this.label3.TabIndex = 2;

this.label3.Text = "Emp Salary :";

//

// BtnEdit

//

this.BtnEdit.Location = new System.Drawing.Point(328, 208);

this.BtnEdit.Name = "BtnEdit";

this.BtnEdit.Size = new System.Drawing.Size(90, 32);

this.BtnEdit.TabIndex = 10;

this.BtnEdit.Text = "Edit";

this.BtnEdit.Click += new System.EventHandler(this.BtnEdit_Click);

//

// BtnSave

//

this.BtnSave.Location = new System.Drawing.Point(224, 208);

this.BtnSave.Name = "BtnSave";

this.BtnSave.Size = new System.Drawing.Size(90, 32);

this.BtnSave.TabIndex = 9;

this.BtnSave.Text = "Save";

this.BtnSave.Click += new System.EventHandler(this.BtnSave_Click);

//

// BtnDelete

//

this.BtnDelete.Location = new System.Drawing.Point(168, 256);

this.BtnDelete.Name = "BtnDelete";

this.BtnDelete.Size = new System.Drawing.Size(90, 32);

this.BtnDelete.TabIndex = 11;

this.BtnDelete.Text = "Delete";

this.BtnDelete.Click += new System.EventHandler(this.BtnDelete_Click);

//

// TxtESal

//

this.TxtESal.Location = new System.Drawing.Point(192, 128);

this.TxtESal.Name = "TxtESal";

this.TxtESal.Size = new System.Drawing.Size(112, 21);

this.TxtESal.TabIndex = 6;

this.TxtESal.Text = "";

//

// TxtEmpNo

//

this.TxtEmpNo.Location = new System.Drawing.Point(192, 64);

this.TxtEmpNo.Name = "TxtEmpNo";

this.TxtEmpNo.Size = new System.Drawing.Size(112, 21);

this.TxtEmpNo.TabIndex = 4;

this.TxtEmpNo.Text = "";

//

// TxtEName

//

this.TxtEName.Location = new System.Drawing.Point(192, 96);

this.TxtEName.Name = "TxtEName";

this.TxtEName.Size = new System.Drawing.Size(200, 21);

this.TxtEName.TabIndex = 5;

this.TxtEName.Text = "";

//

// BtnAddNew

//

this.BtnAddNew.Location = new System.Drawing.Point(120, 208);

this.BtnAddNew.Name = "BtnAddNew";

this.BtnAddNew.Size = new System.Drawing.Size(90, 32);

this.BtnAddNew.TabIndex = 8;

this.BtnAddNew.Text = "&Add New";

this.BtnAddNew.Click += new System.EventHandler(this.BtnAddNew_Click);

//

// TxtDeptNo

//

this.TxtDeptNo.Location = new System.Drawing.Point(192, 160);

this.TxtDeptNo.Name = "TxtDeptNo";

this.TxtDeptNo.Size = new System.Drawing.Size(112, 21);

this.TxtDeptNo.TabIndex = 7;

this.TxtDeptNo.Text = "";

//

// FrmEmp

通过c#连结oracle数据库(一)

所用的工具:vs.net beta2 ,orcale8 步骤:     1 在数据库中建一个Emp表,然后在其中加入EmpNo, EName, Sal, DeptNo四个字段。     2 打开vs....
  • willsound
  • willsound
  • 2001年10月15日 09:01
  • 592

通过c#连结oracle数据库(五)

Application.Run(new FrmEmp()); } private void FrmEmp_Load(object sender, System.EventArgs e) { } pri...
  • willsound
  • willsound
  • 2001年10月15日 09:04
  • 714

通过c#连结oracle数据库(三)

// this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Siz...
  • willsound
  • willsound
  • 2001年10月15日 09:03
  • 700

通过c#连结oracle数据库(四)

{ if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows F...
  • willsound
  • willsound
  • 2001年10月15日 09:03
  • 585

用C#连结ORACLE数据库

 Standard   security:         "Provider=msdaora;Data   Source=MyOracleDB;User   Id=UserName;Password...
  • justin_hua
  • justin_hua
  • 2008年01月04日 16:05
  • 385

C# 连结access

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security...
  • evan02
  • evan02
  • 2010年03月04日 15:38
  • 217

Excel导入Oracle数据库C#winform完整代码

将execl中的数据导入到数据库中 思路: 先将 execl中的数据 动态的添加到dataset 中 再用for将datarow的对象插入到数据库中! 当然为了 防止出错要用事务!   ...
  • qq_27317147
  • qq_27317147
  • 2016年07月21日 15:59
  • 1151

C#连接Oracle数据库的一种方法(详细过程)

1. 需要添加一个System.Data.OracleClient引用,这个文件一般在C:\Program Files (x86)\Reference Assemblies\Microsoft\Fra...
  • u013797023
  • u013797023
  • 2017年11月11日 20:28
  • 411

科目二如何能顺利通过?科目二经验

科目二如何能顺利通过?科目二经验
  • lxy_tap
  • lxy_tap
  • 2016年10月12日 14:01
  • 550

C#远程连接Oracle数据库(通过System.Data.OracleClient)

转自:https://my.oschina.net/Tsybius2014/blog/299125 在.NET中使用System.Data.OracleClient库连接Oracle数据库的步骤...
  • shellching
  • shellching
  • 2016年11月11日 14:28
  • 3258
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:通过c#连结oracle数据库(二)
举报原因:
原因补充:

(最多只允许输入30个字)