Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need help with Imports and Inherits

0 views
Skip to first unread message

Tony Girgenti

unread,
Apr 21, 2009, 10:46:15 AM4/21/09
to
Hello.

I'm trying to follow and learn about VB OOP and creating controls from this
link:
http://msdn.microsoft.com/en-us/library/yhzc935f.aspx

It says that the custom server control we are creating is inherited from the
System.Web.UI.WebControls Namespace.

If i remove the "Imports System.Web.UI.WebControls" line from the vb code
behind file, the web page still runs OK.

I don't understand it. I thought the purpose of the imports was to allow
that namespace to be referenced in the code.

Maybe i don't know what imports or inherits mean.

Any explanation would be gratefully appreciated.

Thanks,
Tony

Karl E. Peterson

unread,
Apr 21, 2009, 1:52:40 PM4/21/09
to
Tony Girgenti wrote:
> I'm trying to follow and learn about VB OOP and creating controls from this
> link:
> http://msdn.microsoft.com/en-us/library/yhzc935f.aspx
>
> It says that the custom server control we are creating is inherited from the
> System.Web.UI.WebControls Namespace.

This newsgroup is dedicated to ClassicVB, which is not what you're using.

Would suggest you repost in a group that has ".dotnet." in its name, for better
chances of finding someone who can offer help with your problem.
--
.NET: It's About Trust!
http://vfred.mvps.org


0 new messages