Click here to Skip to main content
15,906,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form which is product master,i have given a button naming product list on the product master,when i click on button a new form is open containing list of products.
I am trying to do when i click on any product in the list,i want to open all details of that product on the product master where the product list button is placed

How to do this.... pls help.
Posted
Comments
Ankit Rajput 2-May-11 1:39am    
You need it for windows application or for Web Application?

Hi
Please go through with this
Child to Main Window

Regards
AR
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 2-May-11 2:47am    
This is another valid approach, probably most popular my 5. I just prefer interface approach as the ultimate one it terms of abstraction and flexibility.
--SA
This is a popular question. Like most other Inquirers, you do the same mistake: there is no parent-child relationship between forms, there is Owner and OwnedForm. You need to use this relationship if you want good UI integrity. For form collaboration it does not matter at all though.

As usual, the most robust approach based on the interface implemented by the form is not mentioned so far.
Please see my past answer and discussion here:
How to copy all the items between listboxes in two forms[^].

—SA
 
Share this answer
 
Comments
Ankit Rajput 2-May-11 2:32am    
Nice Explanation. My 5.
You can use event model as well Check my Answer.
Sergey Alexandrovich Kryukov 2-May-11 2:45am    
Thank you, Ankit.
Yes, I know. I think someone else mentioned event approach answering the question I referenced.
--SA
 
Share this answer
 
v2

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