Click here to Skip to main content
15,887,270 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to move values (variables) across two winforms , as we do in webforms by using query string ...

i want to do same thing .. but in winforms .. but i dnt know how?

regrds
Posted

Just asking shows that you did not bother doing the least bit of research
Sharing data among Windows Forms[^]
 
Share this answer
 
Comments
[no name] 26-Jun-12 17:52pm    
I do not think so. He says in his post that he knows how to do it in web forms and then goes on to say he wants to do it in winforms.
Sergey Alexandrovich Kryukov 26-Jun-12 17:53pm    
Already noticed that, removed my question, added alternative answer...
--SA
Sergey Alexandrovich Kryukov 26-Jun-12 17:53pm    
My 5, but I prefer my alternative I explain in my answer, please see.
--SA
[no name] 26-Jun-12 18:21pm    
Thanks
Espen Harlinn 26-Jun-12 18:18pm    
5'ed! ;)
As an alternative to the answer by Wes Aday and the article by Shahin Khorshidnia:

This is the popular question about form collaboration. The most robust solution is implementation of an appropriate interface in form class and passing the interface reference instead of reference to a "whole instance" of a Form. Please see my past solution for more detail: How to copy all the items between listboxes in two forms[^].

—SA
 
Share this answer
 
Comments
Espen Harlinn 26-Jun-12 18:18pm    
5'ed! This question surely belong on a faq :-D
Sergey Alexandrovich Kryukov 26-Jun-12 18:28pm    
Thank you, Espen.
--SA
[no name] 26-Jun-12 18:21pm    
5. Not sure that the OP will understand either answer though :-)
Sergey Alexandrovich Kryukov 26-Jun-12 18:29pm    
Well, you never know, so would you suggest not answering at all?.. :-)
Thank you, Wes.
--SA
[no name] 26-Jun-12 18:30pm    
Not at all. Better to let him decide what solution is best within his abilities.

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