473,714 Members | 2,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

When renaming a form...

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 ?
Dec 14 '05 #1
6 1150
Upgrade to VS 2005.

Dec 14 '05 #2
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 ?

Dec 14 '05 #3
Rob
Thanks,

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

"Kerry Moorman" <Ke**********@d iscussions.micr osoft.com> wrote in message
news:F5******** *************** ***********@mic rosoft.com...
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 ?

Dec 14 '05 #4
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
Dec 14 '05 #5
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
"Rob" <rw*****@comcas t.net> wrote in message
news:N6******** ************@co mcast.com...
| Thanks,
|
| That one must gotten automatically renamed when I changed one of the other
| 2.... does VS 2005 keep them all in synch ?
|
| "Kerry Moorman" <Ke**********@d iscussions.micr osoft.com> wrote in message
| news:F5******** *************** ***********@mic rosoft.com...
| > 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 ?
| >>
| >>
| >>
|
|
Dec 14 '05 #6
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.

Dec 14 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5273
by: Adam Barr | last post by:
I have a tag foo that I want to copy unchanged when it is a subtag of bar, so I have a template (x is the namespace for the document): <xsl:template match="x:bar/x:foo"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template> BUT, I discovered that someone has been mis-speling foo as foop in the
0
1734
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an hierarchical view of Parent Nodes and projects where in a projectnode can be added to any ParentNode and hence we may have a project node added to 100 Parent nodes. In this one, I have an operation of Renaming a Project Node. So whenever I am doing the...
1
3440
by: Don Leverton | last post by:
Hi Folks, I have been given a CD with approx 130 .xls files (bean-counters!) that I would like to import and merge to ONE table (tblTradeshow). The XL files are *similarly*, but not identically structured, and the first row does NOT contain field names. Some (actually most) of the column names *are* the same in all of the spreadsheets.
6
1934
by: Mark | last post by:
Hello all - I'm trying to incorporate a stylesheet into an ASP.Net page but everytime I include the "LINK" code to the .css file in the HEADER location of the HTML code, the background color that I have set (which is blue) gets changed to white. Below is my code in the HTML of the ASP.NET page and then my code in the .css file. Any help is sincerely appreciated as I haven't worked with stylesheets alot in my past. Thanks for any...
4
1586
by: psb | last post by:
not sure if anyone still uses this, but I installed .NetFramework 1.0 sp3 (released, aug31,2004) and after that I was getting some javascript errors. I have a user control inside a webform. basically have login.ascx inside login.aspx. the login.ascx contains the <form> tag. <form id="Form1" runat="server"> before the sp3 the form would render like this...
2
3479
by: Anthony Williams | last post by:
Why does ASP.NET insist on renaming the forms on my page? I have a page with one form on there (the login form) and I need to be able to access it using javascript within the page, however ASP.NET decides to rename the form to aspnetForm. I know I could just modify my client side javascript to use aspnetForm but I shouldn't have to! Why does it do this and is there any way to prevent it? Regards Anthony Williams
2
1350
by: Dave Alessi | last post by:
I migrated my project from VS 2003 to VS 2005. The application runs ok with a few exceptions, one being an ambigoius reference when loading a form. My application uses its own "master page" technique, where the ASPX form is static, and the body of the screen is loaded as an ascx file. One particular ascx file throws an exception when I try and load it. The error is "ambigous reference". I have tried everything I can think of to resolve...
7
2243
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I'm new to Visual Studio 2005. I'm creating a windows application using Visual Basic. After I added a control to a form and added some codings to the control, I want to rename the control. However, I notice that after I rename the control, the codings inside it are still using the old name. Is there a setting that I can set to replace the old name with the new name automatically (for the entire form or all coding within the same...
2
1537
by: ypper2001 | last post by:
Here is my "problem": I have a form that is based on a lot of different querys,the result of the querys shown in the form are based one the input given on the form, this form is in two versions and I need the user to be able to change between this to versions. I made a script that closed the form, renamed it to the same name as the second version, then renamed the second version to the same name as the first version. This worked fine...
0
8796
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7946
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6627
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5943
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4462
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3155
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2514
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.