如何将方法从一种形式刷新为另一种形式 [英] how to refresh the method from one form to another form

查看:54
本文介绍了如何将方法从一种形式刷新为另一种形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

   我有2个表单,form1有button1(创建客户)和listview(客户详细信息),在form2中是客户注册表单....,现在我在关闭form2时刷新listview方法

     I have 2 forms, form1 have button1(create customer) and listview(details of the customer),in form2 is customer registration form...., now i refresh the listview method when i am closing the form2

推荐答案

通过导入ListView作为导入此实例的参数来添加构造函数.

To add a constructor by importing ListView as a parameter to import this instance.

并处理form2的Form_Closing事件,请通过重新数据绑定或执行与此相关的操作来刷新ListView.

And handle the event of form2's Form_Closing, plz refresh ListView by re-databinding or do something related to that.


这篇关于如何将方法从一种形式刷新为另一种形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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