Method "New" automatically added in inheriting control

  • Thread starter Thread starter Ellis Yu
  • Start date Start date
E

Ellis Yu

Dear All

I'm trying to create a control that inherits the combobox control. When I
entered in the line "Inherits Combobox", the IDE automatically added the
method Public Sub New(ByVal Container as System.Component.Model.IContainer).
What is it used for? Is there any impact if I cut it out? Thanks

Best Rdgs
Ellis
 
Ellis Yu said:
I'm trying to create a control that inherits the combobox control. When I
entered in the line "Inherits Combobox", the IDE automatically added the
method Public Sub New(ByVal Container as
System.Component.Model.IContainer).
What is it used for? Is there any impact if I cut it out?

I am not able to reproduce this behavior (VS.NET 2003). What version of
VS.NET are you using?
 
My version is VB.Net 2003


Herfried K. Wagner said:
I am not able to reproduce this behavior (VS.NET 2003). What version of
VS.NET are you using?
 

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

Back
Top