473,395 Members | 1,766 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,395 software developers and data experts.

changing name

i am working with a form, i used default name form1.cs when i opened the
project , now i want to change it but when i change the name on the
properties window of the mainform , it does not change?

how can i change this name?
Nov 16 '05 #1
6 1225
"e-mid" <someone@somewhere> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP11.phx.gbl...
i am working with a form, i used default name form1.cs when i opened the
project , now i want to change it but when i change the name on the
properties window of the mainform , it does not change?


It seems that you want to change the filename. Just left-click on it and
change it (don´t forget .cs) or right click on it and click rename.
What you did is to change the name of the form that is used in code to
talkto / to identify the form;
if you want to change the caption of the form you need to change the Text
property of the form.

Hope I understood you right. Greetings,
Tim.
Nov 16 '05 #2

e-mid

1. First close your solution.
2. rename form1.cs and form1.resx to your desired name in the windows
explorer.
3. Open TestProj.csproj (for example) file in wordpad or some editor
4. replace form1.cs and form1.resx to the new name manually.
5. load your solution.
6. open newform.cs (for example)
7. rename class name to
public class newform:Form
{
8.rename the constructor to newForm.

You are set to go now.

Shak.
"e-mid" <someone@somewhere> wrote in message
news:#x**************@TK2MSFTNGP11.phx.gbl...
i am working with a form, i used default name form1.cs when i opened the
project , now i want to change it but when i change the name on the
properties window of the mainform , it does not change?

how can i change this name?

Nov 16 '05 #3
http://www.planetsourcecode.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!2418/lngWid!10/anyname.htm

(watch for wordwrap)

just exit out of the IDE before you do it...

let me know what you think

works like a dream for me!

"e-mid" wrote:
i am working with a form, i used default name form1.cs when i opened the
project , now i want to change it but when i change the name on the
properties window of the mainform , it does not change?

how can i change this name?

Nov 16 '05 #4
Kind of round-about. If it is a C# module that is NOT a code-behind,
there's no reason not to use the IDE to change the file name.

You will still need to do steps 7 and 8 within VS.NET.

--- Nick

"Shakir Hussain" <sh**@fakedomain.com> wrote in message
news:ez**************@TK2MSFTNGP12.phx.gbl...

e-mid

1. First close your solution.
2. rename form1.cs and form1.resx to your desired name in the windows
explorer.
3. Open TestProj.csproj (for example) file in wordpad or some editor
4. replace form1.cs and form1.resx to the new name manually.
5. load your solution.
6. open newform.cs (for example)
7. rename class name to
public class newform:Form
{
8.rename the constructor to newForm.

You are set to go now.

Shak.
"e-mid" <someone@somewhere> wrote in message
news:#x**************@TK2MSFTNGP11.phx.gbl...
i am working with a form, i used default name form1.cs when i opened the
project , now i want to change it but when i change the name on the
properties window of the mainform , it does not change?

how can i change this name?


Nov 16 '05 #5
thnkz all..
"e-mid" <someone@somewhere> wrote in message
news:#x**************@TK2MSFTNGP11.phx.gbl...
i am working with a form, i used default name form1.cs when i opened the
project , now i want to change it but when i change the name on the
properties window of the mainform , it does not change?

how can i change this name?

Nov 16 '05 #6
yes, this is what i look for.

but i cant compile it now, i dont have c++ installed,
i will give a try as soon as i compile it.

thnkz..

"Beeeeeeeeeeeeves" <Be**************@discussions.microsoft.com> wrote in
message news:47**********************************@microsof t.com...
http://www.planetsourcecode.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!241
8/lngWid!10/anyname.htm
(watch for wordwrap)

just exit out of the IDE before you do it...

let me know what you think

works like a dream for me!

"e-mid" wrote:
i am working with a form, i used default name form1.cs when i opened the
project , now i want to change it but when i change the name on the
properties window of the mainform , it does not change?

how can i change this name?

Nov 16 '05 #7

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

Similar topics

15
by: oom | last post by:
I am a bit of a newbie when it comes to python, when working with lists today I noticed some very odd behaviour, any suggestions welcome: Python 2.2.3 (#1, Nov 6 2003, 14:12:38) on linux2...
4
by: Ant | last post by:
Hi, I'm a Vb6 developer just getting into .Net & I like it! But... How do I change the name of a control, say, a button, once code has been written to it. Even if I delete the old event,...
24
by: Charles Crume | last post by:
Hello; My "index.htm" page has 3 frames (content, navigation bar, and logo). I set the "SRC" of the "logo" frame to a blank gif image and then want to change it's contents after the other two...
7
by: Stefan Finzel | last post by:
Hi, is there a way to change the display property on Windows Mobile 2003 SE Mobile/Pocket Internet Explorer? See following example. Please note: visibilty property has the same problem. Is...
5
by: David | last post by:
Hi I seem to be getting nowhere with this. I am opening a form which will be used to input Notes into different fields in a table. My problem is changing the unbound field name to the field name...
3
by: John | last post by:
I have an asp.net control which on the first Load of the page has a unique ID something like: _ctl0__ctl1_GroupName__ctl1_ControlName and after the first postback it changes to: ...
7
by: Sakharam Phapale | last post by:
Hi All, How to preserve the old font properties while changing new one? I posted same question 2 months back, but I had very small time then. eg. "Shopping for" is a text in RichTextBox and...
5
by: John Pass | last post by:
I saved a project accepting the defaults name “ConsoleApplication2â€. After adding the code, I changed the name using “Rename†in the file directory. After opening the file, the project name...
32
by: deko | last post by:
I have a popup form with a textbox that is bound to a memo field. I've been warned about memo fields so I'm wondering if I should use this code. Is there any risk with changing the form's...
4
by: andychambers2002 | last post by:
I'm working on a "TempFile" class that stores the data in memory until it gets larger than a specified threshold (as per PEP 42). Whilst trying to implement it, I've come across some strange...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.