What the hell is going on with Form Inheritance?

  • Thread starter Thread starter Andreas C. Andreou
  • Start date Start date
A

Andreas C. Andreou

I am trying to build an application in which I have some base forms (for
example a base edit form) on which I have some basic controls that I will
need on descendant forms (for example a grid and 2 buttons OK and Cancel)

I have though lots of problems on forms I create inheriting from those base
forms. And I mean lots of crazy problems. Buttons are getting everywhere on
the form every time I open a form and although I set them where I want when
I close and reopen the form again they go whereever they want, Columns are
lost from the grid. Panels and controls are disappearing and many more. This
is hugely frustrating! I cannot work like that and certainly this is nowhere
near the quality I have seen elsewhere in the framework.

Am I doing something wrong? Is the inheritance of forms so problematic? What
the hell is going on?

I am sorry for my language but I am really really frustrated with this!
 
Andreas,

Your frustration is understandable, but I am unable to reproduce the
problem you're describing.

I would recommend you do the following: Create a sample that uses the
barest minimum number of controls and code to reproduce the problem. Then
post that code so that others can try to reproduce the problem along with
step-by-step instructions of how you reproduce it. How you create the
derived class for example. Do you create a form object and change the base
class or do you create a class object and derive it from the base form? If
you can provide something that's reproducible, then I might be able to help
you narrow down the problem.

Pete
 
I had this happening also

I went back though all the custom class referances I use within the inherited form and do a rebuild on each one individually, this seamed to fixit. It seams that the versions of the refences used do not update cleanly

Dav

----- Andreas C. Andreou wrote: ----

I am trying to build an application in which I have some base forms (fo
example a base edit form) on which I have some basic controls that I wil
need on descendant forms (for example a grid and 2 buttons OK and Cancel

I have though lots of problems on forms I create inheriting from those bas
forms. And I mean lots of crazy problems. Buttons are getting everywhere o
the form every time I open a form and although I set them where I want whe
I close and reopen the form again they go whereever they want, Columns ar
lost from the grid. Panels and controls are disappearing and many more. Thi
is hugely frustrating! I cannot work like that and certainly this is nowher
near the quality I have seen elsewhere in the framework

Am I doing something wrong? Is the inheritance of forms so problematic? Wha
the hell is going on

I am sorry for my language but I am really really frustrated with this
 
I'm agree with Andreas, I have the same problems and all the programmers
from my group, unfortunable I don't have enough time now for reproducing the
scenario, but I will try later and hope to find some one with that problem
and solution. I quit the use of visual inheritance for now, but is very
frustrating to reproduce one by one every similar form.

Hope to find the solution

MajorTom
 
Back
Top