Component Designer Generated Code

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
 
A

Armin Zingler

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.
 

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