Posted 19 years ago
by Greg Shaffer
- Boulder
![Avatar](https://secure.gravatar.com/avatar/33d583f12c2e3b9220cbb4e47c0f9567.jpg?s=64&d=identicon&r=g)
Hi,
I do a lot of my Document setup in my Editor's constructor. This works great, until I copy/paste the control in design mode, which causes a new Document to be created in the InitializeComponent function. If I don't go and manually remove this autogened code, then I lose my setup.
It would be ideal for my situation if I could override the Editor's Document property, and then I could do my setup in the setter of that property.
Is it possible to make the Editor's Document property virtual?
Thanks,
Greg
I do a lot of my Document setup in my Editor's constructor. This works great, until I copy/paste the control in design mode, which causes a new Document to be created in the InitializeComponent function. If I don't go and manually remove this autogened code, then I lose my setup.
It would be ideal for my situation if I could override the Editor's Document property, and then I could do my setup in the setter of that property.
Is it possible to make the Editor's Document property virtual?
Thanks,
Greg