Click here to Skip to main content
14,868,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

1 solution

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[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900