Hi Rex,
The reason why you are getting the "shadowed" message is because you can't inherit the html portion of the ASP.NET, just the Page class itself. When you drop a label on the subclassed page, ASP.NET sees that as a new object that has the same name as an object referenced in the parent class. It therefore needs you to delare it as shadowed so .NET can manage the references.
>All,
>
>I have several forms with similar functionality from which I want to create a parent class and from these forms subclasses of the parent class. Part of the form is an error label that I want to access from the parent class. I can include the WITHEVENTS declaration, but in the subclasses I get the same declaration and a warning that the label declaration should be SHADOWed from the parent class. Is there a way to include the declaration in the parent class without the warning in the child class?
>
>TIA
>
>Rex
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi