显示表单的详细信息 [英] showing details of a form

查看:59
本文介绍了显示表单的详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我在c#中创建一个数据库应用程序。我有一个名为members_db的数据库表。我有这么多表单,一个名为MEMBERS的表单包含members_db的完整信息。一个名为SEARCH的表单还包含一个搜索查询,该查询在members_db中搜索记录但不包含members_db记录的完整信息。 MEMBERS和SEARCH都包含用于选择单个记录的列表框。

i希望能够将SEARCH链接到MEMBERS,这样当我们使用SEARCH表单搜索members_db中的记录时,我双击一个项目SEARCH中的列表框将以MEMBERS形式显示或打开其相关记录。

hello
i am making a database application in c#. i have a database table called members_db. i have so many forms, one form called MEMBERS contains full information of members_db. One form called SEARCH also contain a search query which search records in members_db but dont contain full information of records of members_db. Both MEMBERS and SEARCH contain listbox which is used to select individual records.
i want to able to link SEARCH with MEMBERS so that when we use SEARCH form to search for records from members_db and i double click an item in the listbox in SEARCH it will display or open its related record in the MEMBERS form.

推荐答案

这不难做到,但具体如何做取决于关系表格之间。

如果您的会员表单打开搜索表单,那么它是父,搜索表单是子:在两种形式之间传递信息,第2部分:儿童到父母 [ ^ ]

如果不是这样的话你的应用程序有效,那么它将是本系列中另外两个中的一个:

在两个表格之间传递信息,第1部分:家长到孩子 [ ^ ]

在两个表单之间传输信息,第3部分:儿童与儿童 [ ^ ]
That's not difficult to do, but exactly how to do it depends on the relationship between the forms.
If your Members form opens the Search form, then it is the "Parent" and the Search form is the "Child": Transferring information between two forms, Part 2: Child to Parent[^]
If that isn't how your app works, then it will be one of the other two in this series:
Transferring information between two forms, Part 1: Parent to Child[^]
Transferring information between two forms, Part 3: Child to Child[^]


这篇关于显示表单的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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