当前位置:编程学习 > C#/ASP.NET >>

vb.net 提示未将对象引用设置到对象的实例。

'删除信息:把要删除的信息从数据库中删除, Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click DataSet11.Tables("Patient").Rows(DataGridView1.CurrentRow.Index).Delete() '此句报错 sqlDataAdapter1.Update(DataSet11, "Patient") TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox7.Text = "" TextBox8.Text = "" TextBox9.Text = "" = "" PictureBox1.Image = Nothing End Sub
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,