Component Designer Generated Code

  • Thread starter Thread starter Scott Kilbourn
  • Start date Start date
S

Scott Kilbourn

Hi,

Still new to this .NET stuff, so bear with me.

Sometimes when I design a new component, I get a Region that says "Component
Designer Generated Code". In this region are a couple of New function,
dispose, a definition for components, and an InitializeComponent function.
In other cases, I don't get this region, and have to code this manually to
get the component to work.

So far, I haven't been able to figure out why this is created in some
instances and not created in others.

So, can anyone tell my why I get this sometimes, and other times I don't?

Thanks
 
Scott Kilbourn said:
Still new to this .NET stuff, so bear with me.

Sometimes when I design a new component, I get a Region that says
"Component Designer Generated Code". In this region are a couple of
New function, dispose, a definition for components, and an
InitializeComponent function. In other cases, I don't get this
region, and have to code this manually to get the component to
work.

So far, I haven't been able to figure out why this is created in
some instances and not created in others.

So, can anyone tell my why I get this sometimes, and other times I
don't?

It depends on the template you select in the "add item" dialog. Some
templates contain the region, some don't.
 
Back
Top