Click here to Skip to main content
16,018,818 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am facing problem to getting previous page controls in c# please help me with example thanks.......
Posted
Comments
OriginalGriff 29-Jun-12 8:58am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
AmitGajjar 29-Jun-12 9:05am    
i have just deleted my answer when i come to know that Natwar want previous page information in Windows application. i was thinking he is asking in asp.net :D

1 solution

pass controls while create instance of new form
eg.
VB
public class formDest
   public sub new(byval c as control)
     'something to do
   end sub
end class

now, pass control from source form to destination form
VB
public class formSource
   public sub btn_click(...) Handels Btn.click
     dim fd as new formDest(btn1) ' this line will initialize form (using New) and pass the btn1 control to destination form through parameter
     fd.show()
   end sub
end class
 
Share this answer
 

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