?? branchcollect.cs
字號:
?using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace 人事管理.HolidayManage
{
public partial class Branchcollect : Form
{
data da = new data();
public Branchcollect()
{
InitializeComponent();
}
//確定
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
private void Branchcollect_Load(object sender, EventArgs e)
{
DataSet ds=new DataSet ();
SqlDataAdapter sqlda = new SqlDataAdapter("select branchnumname from branchnum",da.link());
sqlda.Fill(ds, "branchnum");
comboBox1.DataSource = ds.Tables["branchnum"];
comboBox1.DisplayMember = "branchnumname";
comboBox1.ValueMember = "branchnumname";
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -