如何刷新另外一个窗体中的子窗体
1个回答
展开全部
操作方法如下:
Form2
code=VB.NET]Public Sub tree_view_jg()
Me.TreeView1.Nodes.Clear()
myset = New DataSet()
Using myconnect As New SqlClient.SqlConnection(My.Settings.Setting)
Dim myquery As String = "select * from dbo.depart order by up_jg_id"
mydataAdapter = New SqlClient.SqlDataAdapter(myquery, myconnect)
mydataAdapter.Fill(myset, "depart")
End Using
Form2
code=VB.NET]Public Sub tree_view_jg()
Me.TreeView1.Nodes.Clear()
myset = New DataSet()
Using myconnect As New SqlClient.SqlConnection(My.Settings.Setting)
Dim myquery As String = "select * from dbo.depart order by up_jg_id"
mydataAdapter = New SqlClient.SqlDataAdapter(myquery, myconnect)
mydataAdapter.Fill(myset, "depart")
End Using
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询