Last post Feb 13, 2006 07:18 AM by starzen
Feb 12, 2006 04:26 PM|starzen|LINK
Missing something simple i am sure
i am trying to use a base class for a number of controls
for example control1, control2 and control3 all inherit from BaseControl which inherits rom PortalModuleBase
all 3 controls are in their own .vb file and all 3 controls also have their own ascx file
everything builds fine but when i try to edit one of the ascx files i get the following error message
The file could not be loaded in the windows forms designer
Control1 --- The base class base could not be loaded. nsure the assembly has been referenced or built if it is part of the project
if i change the base class to PortalModuleBase everything works. if i add the base class to the vb file of the control it works too.
There is an imports line for the namespace of the base class. Also tried putting it into the same namespace
Any ideas ?
Feb 12, 2006 09:37 PM|Sponge_Bob|LINK
Feb 13, 2006 07:18 AM|starzen|LINK
Thanks. I am using 2003 but i didnt have the base class declared as MustInherits
It is even easier to reproduce.
In control1.ascx.vb i have a class defined like this
the baseclass is defined like this
Public Class myBaseClass
if i define the base class in the same .vb file the project builds and i can open the ascx file for editing. If i move the base class into a separate file (myBaseClass.vb) using the same namespace the project builds but i can no longer open
the ascx file for editing and i get the above mentioned error