0

I have 5 forms which in hindsight should have an ancestor descended from Form. Unfortunately, the common elements of the forms is a splitContainer and a listbox in one of the containers. Each form has it's own collection of panels in the other half of the splitter.

Is there any way to fix this problem without having to basically recreate the forms from scratch? I have had zero luck trying to change paternity with ^x^v.

  • You should have refactored when you baked up the second form and it ended up too similar to the first one. Now, you stacked up some technical debt against yourself. Good luck... – T. Sar - Reinstate Monica Jun 17 '17 at 4:42
  • With 5 forms, how bad could starting from scratch be? You can copy and paste the parts you want to keep/reintroduce into your new forms. – Martin Maat Jun 17 '17 at 7:23
  • @MartinMaat But you can't copy/paste controls onto a new parent. – Loren Pechtel Jun 17 '17 at 18:14
  • What are we talking about? WPF or Windows Forms? – Martin Maat Jun 17 '17 at 18:55
  • @MartinMaat Forms. – Loren Pechtel Jun 17 '17 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.