Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I Have two Forms.
1. Form1 Include Databinds Control Gridview /textboxes etc
2. Form 2 It contain Search Form

I can access Form2 tow From1.
Now the problem is i want to render Searched result on form 1 Controls which i searched in form1.
How can i do this i am using Three tier architecture BLL DLL layers.
Form1 Controls already bind.
I want to render search result on Form1
Posted
Updated 11-Nov-13 19:13pm
v2
Comments
Sergey Alexandrovich Kryukov 6-Nov-13 14:49pm    
If you can access one form instance from another, what makes a specific problem related to rendering of search result?
—SA
BillWoodruff 6-Nov-13 16:50pm    
Please define exactly what you mean by "render."

i found this post: solution 2 check it

how to enable the buttons which are in parent form from child form in C#.net[^]

hope it helps!
 
Share this answer
 
I already answered recently: How to pass Searched Data From Form 2 to From 1[^].

Did you ignore this advice, or did not understand it? You did not ask any questions on it. If you understood it, you would also understand that rendering of search result would not make a specific problem. In my approach, you could create any kind of interface for one of the forms, including some interface suitable to passing (inquiring or pushing) the search results. Instead of trying to understand it and getting to a solution, you simply have a re-post. And I have to remind you, that re-posts are considered as abuse (by apparent reasons) and could be reported as such.

If you have a doubt, better ask your follow-up questions. And better do it on the page of your original question, not here. If you comment some answer, the author of the post gets notification.

—SA
 
Share this answer
 
Comments
Ziee-M 7-Nov-13 3:33am    
actually he is using Mdi system, i' am not sure if that technique works fine to pass child data to parent Sergey !
Sergey Alexandrovich Kryukov 7-Nov-13 9:22am    
1) Of course it does work.
2) Who needs MDI, ever? It would be better not developing anything than developing MDI.
—SA
Ziee-M 7-Nov-13 10:22am    
Hi --SA
1/passing value is possible from parent to child, no problem. but from child to parent, i think only your Interface solution should work.
2/Now for MDI system, actually i am using it, i don't find any advantage, but i cant go back after going this far in my app. (the advantage is probably the UI, it is a little better)
Sergey Alexandrovich Kryukov 7-Nov-13 11:39am    
There is no difference, child to parent, parent to child, or BOTH. And MDI is something your user's won't line, as soon as they knew anything else. But, in terms of collaboration, there is no difference.
—SA
Muhamad Faizan Khan 12-Nov-13 0:51am    
i saw your previous answer. which is not full fill my requirement thats why i asked this again. i check your sample application. both Forms (parent n child) start together and close together. i dont want this.

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