How the variables can be transferred between the Winforms? Example customer id
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You must declare a public property in the form you wish to pass to. Then, after instantiating your new form, it’s a simple assignment:
C#:
MyOtherInstantiatedForm.CustomerID = CurrentCustomerID;Do you need to pass around CustomerID to several forms? How about other customer information? If you provide more information we can probably give you a better solution.