Classed Control Problem

T

Tommy

I'm using VB.NET 2003

I have started a new project. I have subclassed each control I plan on using
in my project, text box, tab control, etc...

I have a base form then I have created an inherited form from that one. On
it i have a tab control with 2 pages and a menu.

When I create an inherited form from that inherited form and put a classed
control on it inside one of the tab pages, all looks fine until I compile my
code.

When I compile my controls on my tab page dispear. If i look in the
generated code I see them there. I cannot add another by the same name. I
cannot however see them or anything in the IDE or in the compiled program

We want to subclass partially built forms to speed up development time.

Has anyone else ran across this problem or have any ideas what I may be
doing wrong here?

Thanks in advance.

Tommy
 
A

alantolan

Changing the access specifier from Friend to Protected for the Tab and
Pages in the base class resolved this for me.

NOTE: I had to remove the controls from the derived class code and
re-add them through the IDE, merely changing the access specifier did
not cause them to re-appear.

HTH,
Alan.
 

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