一樣是先用DataGridView先抓取資料顯示
<記得滑鼠要點選到p_sn,才可抓取到sn>
接著點選刪除,出現確認視窗
刪除成功會跳訊息
private void Form1_Load(object sender, EventArgs e)
{
this.Text = ""; //將標題列文字設為空
ControlBox = false; //不在標題列顯示控制項
}
private void button1_Click(object sender, EventArgs e)
{
this.Close(); //this指的是這個form
}
private void button1_Click(object sender, EventArgs e)
{
this.MaximizeBox = false; //關閉最大化按鈕
this.FormBorderStyle = FormBorderStyle.FixedDialog; //設定視窗的邊框樣式,FixedDialog就是不能改大小的視窗
}
private void button1_Click(object sender, EventArgs e)
{
this.Left = Convert.ToInt32(textBox1.Text);
this.Top = Convert.ToInt32(textBox2.Text);
}
private void Form1_Load(object sender, EventArgs e)
{
this.StartPosition = FormStartPosition.CenterScreen; //居中顯示
}