When renaming a form...

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

When renaming a form... looks like you should probably rename it in 2
places... the logical (Name) property of the form as well as the physical
file name... (this could become confusing ). Is there an easy way to keep
them both in synch ? Any reason not to that I am overlooking ?
 
Rob,

And if the form whose name you have changed is the start up form, a third
place:

On the Property Pages dialog box, select the new form name as the Startup
Object

Kerry Moorman
 
Thanks,

That one must gotten automatically renamed when I changed one of the other
2.... does VS 2005 keep them all in synch ?
 
Rob,

When you rename a vb file you have only renamed the file name.

The actual program name is the Class Name.

Of course is this not in Sync just because of the fact that it is not
forever wanted.

Have a look as well at the project properties, that will probably open a
complete view on not yet understood things. (The namespace)

I hope this helps,

Cor
 
Rob,
Yes VS 2005 keeps them all in synch. Including the new .Designer files.



--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| Thanks,
|
| That one must gotten automatically renamed when I changed one of the other
| 2.... does VS 2005 keep them all in synch ?
|
| | > Rob,
| >
| > And if the form whose name you have changed is the start up form, a
third
| > place:
| >
| > On the Property Pages dialog box, select the new form name as the
Startup
| > Object
| >
| > Kerry Moorman
| >
| > "Rob" wrote:
| >
| >> When renaming a form... looks like you should probably rename it in 2
| >> places... the logical (Name) property of the form as well as the
physical
| >> file name... (this could become confusing ). Is there an easy way to
| >> keep
| >> them both in synch ? Any reason not to that I am overlooking ?
| >>
| >>
| >>
|
|
 
Yes, when you rename a form in VB2005, the only place that isn't
automatically renamed when you rename a form is the form's Text. And
that may no longer be the same as the form name anyway.
 

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