选择ListView项目并以另一种形式关联到文本框 [英] Select ListView Item and Assing To Textbox in Another Form

查看:120
本文介绍了选择ListView项目并以另一种形式关联到文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个包含员工详细信息"的表格.从中我必须选择永久","Temprory",学徒"等类别.我有一个带有列表视图的常规窗体,可以以多种形式调用类别.当我在类别"文本框中使用F2键选择类别"时,它将调用带有列表视图的窗体,该窗体加载并显示类别详细信息.当我选择一个值时,它将被分配给Employee窗体中的类别文本框.我是用VB完成的.在vb.net

Hi,

I have a form with Employee Details. From That i have to Select Category like Permanent,Temprory,Apprentice,etc. I have a general Form with List view to call category in various form. When i select the Category using F2 key in the Category textbox it will call the Form with listview which loads and displays the category details. When i selected a value it will be assigned to the category text box in Employee form. I done it with VB. How to do in vb.net

推荐答案

它的开放式问题中该怎么办.尝试提出一些具体问题...

跟随链接..您将从那里得到想法..

在表单之间传递数据 [ http://colinmackay.co.uk/blog/2005 /04/22/passing-values-between-forms-in-net/ [
its very open ended question.. try to ask some concrete questions...

follow the links.. you will get idea from there..

Passing Data Between Forms[^]

http://colinmackay.co.uk/blog/2005/04/22/passing-values-between-forms-in-net/[^]


这是有关表单协作的常见问题.最可靠的解决方案是在表单类中实现适当的接口.请查看我过去的解决方案以获取更多详细信息:如何以两种形式在列表框之间复制所有项目 [
This is the popular question about form collaboration. The most robust solution is implementation of an appropriate interface in form class. Please see my past solution for more detail: How to copy all the items between listboxes in two forms[^].

—SA


这篇关于选择ListView项目并以另一种形式关联到文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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