?? frmdy.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.OleDb;
namespace SMS
{
public partial class frmDy : Form
{
public frmDy()
{
InitializeComponent();
}
private void frmDy_Load(object sender, EventArgs e)
{
comboBox1.SelectedIndex = 0;
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
OleDbConnection conn = BaseClass.ConnClass.DataConn();
OleDbDataAdapter da = new OleDbDataAdapter("select * from tb_note where type='" + comboBox1.SelectedItem.ToString() + "'", conn);
DataSet ds = new DataSet();
da.Fill(ds);
dgvShow.DataSource = ds.Tables[0];
}
private void button2_Click(object sender, EventArgs e)
{
}
public string stringSedn="";
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
stringSedn+=dgvShow.SelectedCells[0].Value.ToString();
frmSendSMS frmsend = (frmSendSMS)this.Owner;
frmsend.txtSmsContent.Text = stringSedn;
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
private void dgvShow_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -