alanchinese Posted March 12, 2005 Posted March 12, 2005 i created an object and made it as a property of the winform. then i add a usercontrol which has the same property. what should i do so that i avoid to create a "New" method to accept the object, "passing" the object visually in the usercontrol's property window? (currently, that property appears grey in the property window...) thankx. Quote
Mister E Posted March 13, 2005 Posted March 13, 2005 Define a setter. As long as the property type matches your class, that's all you should need to do. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.