在关闭窗体的vb.net中的两个窗体之间传递值 [英] Pass value between two form in vb.net on form closed

查看:78
本文介绍了在关闭窗体的vb.net中的两个窗体之间传递值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..朋友,我有两种形式,当我们在Form1的按钮单击上显示Form2时,我知道如何传递值.我有不同的问题,假设我在Form1的按钮单击上显示了Form2,而我现在在Form2上选择了EmpId我关闭了Form2,我必须向Form1上的EmpId显示如何实现它.如果有人知道答案,请帮助我,我很困惑.

在此先感谢
Parveen Rathi

Hi.. Friends I have two forms I know how to pass value when we show Form2 on Form1''s button click i have different problem suppose I show the Form2 on Button Click of Form1 and I i select EmpId on Form2 now I close the Form2 and I have to show the EmpId on Form1 how can I achieve it. Please help me if anybody knows the answer, I''m very confused.

Thanks in advance
Parveen Rathi

推荐答案

您先前的问题本身就有答案.
在vb.net中的两个表单之间传递值 [ ^ ]

或者您可以检查 [ ^ ]和 Google [ ^ ]总是很方便.
Your previous question itself has the answer.
Pass value between two form in vb.net[^]

or you may check this[^], and Google[^] is always handy.


使用C#和VB.NET示例在.NET 1.x中的表单之间传递值 [ ^ ]
Add handler for the Closed[^]

and have a look at
Passing Values between Forms in .NET 1.x with C# and VB.NET examples[^]


这篇关于在关闭窗体的vb.net中的两个窗体之间传递值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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