Hello,
Is there any way I can use parameterized constructor in Visual Designer. If not, what other options (so then we can still use Visual Designer to move control) we have?
We use 10.2B SP08
Regards,
Aliaks
You cannot. PDS (OEA in 10.2b) has no way of knowing what values to pass to that constructor, and it has no way to construct objects of those values either. In addition, it doesn't actually run your code. It uses code parsing and reflection to run the steps defined in the initializecomponent method at design time.
You need to provide a no argument constructor.
Hello,
Is there any way I can use parameterized constructor in Visual Designer. If not, what other options (so then we can still use Visual Designer to move control) we have?
We use 10.2B SP08
Regards,
Aliaks
Flag this post as spam/abuse.
ISupportInitialize is exactly what I was looking for. Thank you, Mike.