Windows Form1到Form2 [英] windows forms1 to form2

查看:95
本文介绍了Windows Form1到Form2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

from1我有从sql公用表structrure(CTE)填充的treeview
和from2我有组合框和文本框以及两个按钮.
一个按钮将记录的内容保存在sql表中,另一个按钮的名称关闭.

当我从组合框中选择了父项和父项,然后在文本框中输入他的孩子并保存到sql
在我关闭from1 treeview的按钮后,应该填充.

如何从sql从from2到from1树视图更新.


我必须将treeview从from2更新到from1.

from1 i have treeview which is populated from sql common table structrure(CTE)
and from2 i have combobox and textbox and two button.
one button save the recored in the sql table and other button name is close.

when i selected the parentid and parentname from combobox and enter his child in the textbox saving to sql
after i closed the button from1 treeview should populate.

how to do from from2 to from1 treeview update from sql.


i have to update treeview from from2 to from1.

推荐答案

将treeview设置为form1中的公共视图.然后,Forms2可以进行更新
set treeview as public in forms1. Forms2 can then do an update


这篇关于Windows Form1到Form2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆