Clone a WizardPage to another

Wizard for Windows Forms Forum

Posted 18 years ago by bouchenafa - COTECNA
Avatar
I'm wondering what's the easiest way to clone(shallow copy) a WizardPage to another.
I'm using C# and I want to do it by program.
In .NET, to clone an object, it should implement ICloneable interface.
It looks like WizardPage does not implement this interface.

Best regards
Med Bouchenafa

Comments (2)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sorry but you'll have to copy all the Wizard-related properties on the WizardPage yourself to the new instance to clone it. User interface controls typically don't implement ICloneable, at least as far as I've seen.


Actipro Software Support

Posted 18 years ago by bouchenafa - COTECNA
Avatar
Thanks a lot for your quick answer.
That's what, more or less, I was expecting...
I'll cope with it.
Anyway, I really like your product.

Best regards
Med Bouchenafa
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.