473,386 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

renaming Form1

There seem to be 4 steps to rename the form Form1 to MyForm:

Rename the CS file from Form1 to MyForm. (I think this step could be
ommitted, but they might deduct points.)

Click on the form and then go to the properties section. In the
(name) section, enter MyForm. In the text section, enter "This is my
form" or MyForm or whatever.

Compile to see where the error is. Change Form1 to MyForm.

Is there a better way?

-
http://mysite.verizon.net/vze8adrh/news.html (profile) --Tim923 My email is valid.
Nov 16 '05 #1
3 5767
Tim923 wrote:
There seem to be 4 steps to rename the form Form1 to MyForm:

Rename the CS file from Form1 to MyForm. (I think this step could be
ommitted, but they might deduct points.)

Click on the form and then go to the properties section. In the
(name) section, enter MyForm. In the text section, enter "This is my
form" or MyForm or whatever.

Compile to see where the error is. Change Form1 to MyForm.

Is there a better way?

-
http://mysite.verizon.net/vze8adrh/news.html (profile) --Tim923 My email is valid.


I tend to do it this way :

(1) Rename the .cs file.
(2) Go to the .cs file, and hit Ctrl+M Ctrl+L. This expands all the regions.
(3) Find and replace Form1 to your new name.
(4) Right click on the project in the solution and go to properties.
(5) In StartupObject drop it down and select the name of your form.

David.
Nov 16 '05 #2

You've seemed to hit it squarely on target! The
generated code is definetely a real bite when it comes to
renaming one of the objects in the project.
-----Original Message-----
There seem to be 4 steps to rename the form Form1 to MyForm:
Rename the CS file from Form1 to MyForm. (I think this step could beommitted, but they might deduct points.)

Click on the form and then go to the properties section. In the(name) section, enter MyForm. In the text section, enter "This is myform" or MyForm or whatever.

Compile to see where the error is. Change Form1 to MyForm.
Is there a better way?

-
http://mysite.verizon.net/vze8adrh/news.html (profile) -- Tim923 My email is valid..

Nov 16 '05 #3
http://www.planetsourcecode.com/vb/s...2418&lngWId=10

"Tim923" <ju********@verizon.net> wrote in message
news:9v********************************@4ax.com...
There seem to be 4 steps to rename the form Form1 to MyForm:

Rename the CS file from Form1 to MyForm. (I think this step could be
ommitted, but they might deduct points.)

Click on the form and then go to the properties section. In the
(name) section, enter MyForm. In the text section, enter "This is my
form" or MyForm or whatever.

Compile to see where the error is. Change Form1 to MyForm.

Is there a better way?

-
http://mysite.verizon.net/vze8adrh/news.html (profile) --Tim923 My email
is valid.

Nov 16 '05 #4

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

Similar topics

9
by: peter | last post by:
Hello all, Recently I've started to refactor my code ...(I'm using python 2.3.4) I tried to add extra functionality to old functions non-intrusively. When I used a construct, which involves...
5
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>...
0
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...
3
by: Joe Thompson | last post by:
Hi, I am almost embarrassed to ask this but I can't figure out how to rename a form (and it's file) in VC++. I don't like being stuck witht the main form called Form1. I'm sure it must be...
1
by: Chris | last post by:
Hi, I create a new VC++ project, then want to rename the default filename Form1 (used for .h, .cpp, .resx) to something else. If I rename it from within Windows explorer the project becomes...
4
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. ...
1
by: Brian | last post by:
Hello! I am using a book that tells me to rename form1.vb in the Solution Explorer and if I do this, the program never runs. It gives me a sorts of errors. Starting with saying the EXE file is...
8
by: BillCo | last post by:
I'm updating a legacy app with table naming that makes baby jesus cry. It's a bit of a spider web though... no telling when and where the tables will be called by name. So I wrote this for renaming...
3
by: JP | last post by:
Is there a way to tell the VS2005 IDE NOT to rename my controls on a build? if my control name is txtDate, the rendered version of the page has the control as crtl01_txtDate. This poses a big...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.