Interacting with a UserControl
Hi everyone, I want to make a usercontrol that I can then use on my project form, and then interact with it.
(for example, get the result of a calculation that was made in the user control and then make futher calculations on my form)
I basicly know how to make a Usercontrol, by not how to use the information that it derives for further use.
Hope I are explaining this clearly,
Thanks
Re: Interacting with a UserControl
Just like any other class, you expose data in a UserControl either via a property or as the result of a method.
Re: Interacting with a UserControl
I remember using the property in vb6, but was a long time ago, and can not find any info on it, can you recomend the best method
Re: Interacting with a UserControl
It's not "the property". It's just properties. You use properties all the time. When you create a form and add controls, you configure them in the Properties window. Those are all properties you're setting, e.g. the Text of a form or control. There is a ton of information out there on properties in VB and it's would be very hard not to find it, unless you were searching for "funny cats".
http://www.google.com.au/search?q=pr...ient=firefox-a