confused by some vc++.net documentation

P

Petded

Hi,

i found this extract regarding vc++.net express edition from MS.

Quote:
Make certain that you edit the Text property and not the (Name)
property beneath the Design category, which also displays the value
Form1. The Name property is associated with code (and won't accept
spaces anyway).

The above text refers to changing the name of the form.

But i have had a look at the free express edition downloadable from
the MS website, and whilst it does show the form name text property to
be changed, there is NO name property under the design catagory.

Is this feature disabled or is the above text wrong ?
 
T

Tamas Demjen

Petded said:
But i have had a look at the free express edition downloadable from
the MS website, and whilst it does show the form name text property to
be changed, there is NO name property under the design catagory.

It has to be there for controls. It shows up as (Name), not Name. It's
the first under the Design category. The form itself doesn't show a
(Name) property. I guess that's because it's not instantiated yet. When
you drop a control on a form, it has a name, since it's an object.
However, when you design a form, it's just a class, not an instance yet,
and therefore it can not have a name. You could make multiple insances
of your form, each of which having a different name. It's not something
you set at design time. The Name property is not the name of the class,
but the name of the instantiated object. I hope this explains it.

Tom
 
P

Petded

thanks
It has to be there for controls. It shows up as (Name), not Name. It's
the first under the Design category. The form itself doesn't show a
(Name) property. I guess that's because it's not instantiated yet. When
you drop a control on a form, it has a name, since it's an object.
However, when you design a form, it's just a class, not an instance yet,
and therefore it can not have a name. You could make multiple insances
of your form, each of which having a different name. It's not something
you set at design time. The Name property is not the name of the class,
but the name of the instantiated object. I hope this explains it.

Tom
 

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