I have a class and a user control. The user control is supposed to represent the class and contain all its properties. I’m kind of lost on how to handle this problem
all help is greatly appreciated
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.
Seems like you need to use data binding.
Create a property typed with your class e.g.
MyClass Data {get; set;}, then add new BindingSource and as BindingSource.DataSource set your Data property. Then design your control.Do not forget to create new instance of MyClass in constructor.