Visual Inheritance in CF 2.0?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Maybe it was just a great day dream, but I thought CF 2.0 was going to
support visual form inheritance. If so, it doesn't appear to be obvious in
VS 2005. When I try to use the "working man's approach," as back in the good
ole 2003 days by manually inheriting Form B from Form A, I get an interesting
error message: Partial declarations must not specify different base classes.
Can anyone shed some light. Would appreciate. Thanks!
 
Make sure that there are no other "partial" classes for "FormA" that inherit
from anything. Then, if "FormA" and "FormB" are inside the same project,
rebuild. I'm using Beta 2 and visual inheritance seems to work fine.
 
Visual inheritance is supported. When you create an inherited form, do not
use Add New Form. Instead use Add New Class and derive it from the existing
form class. Otherwise you need to edit your class declaration in more than
one place and the designer will have some problems.
 
I meant "FormB". Make sure that "FormB" only inherits from one class in all
the "partial" pieces.
 
Tim, Daniel and Alex, thanks for your quick response and expert advice --
works like a charm! Now, trying to find information on building an
installation package in 2.0. Thanks!
 
Back
Top