Posted 19 years ago
by Greg Shaffer
- Boulder
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