Visual Inheritance in CF 2.0?

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!
 
T

Tim Wilson

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.
 
A

Alex Feinman [MVP]

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.
 
T

Tim Wilson

I meant "FormB". Make sure that "FormB" only inherits from one class in all
the "partial" pieces.
 
G

Guest

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top