all groups > c# > june 2004 >
You're in the

c#

group:

changing name


RE: changing name Beeeeeeeeeeeeves
6/18/2004 9:20:01 AM
c#: 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!



[quoted text, click to view]
Re: changing name Shakir Hussain
6/18/2004 9:53:07 AM

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.


[quoted text, click to view]

Re: changing name Tim Bücker
6/18/2004 4:47:42 PM
"e-mid" <someone@somewhere> schrieb im Newsbeitrag
news:%23xfVbHUVEHA.3540@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

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.

changing name e-mid
6/18/2004 5:36:05 PM
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?

Re: changing name Nick Malik
6/18/2004 11:30:35 PM
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

[quoted text, click to view]

Re: changing name e-mid
6/19/2004 11:17:51 AM
thnkz all..


[quoted text, click to view]

Re: changing name e-mid
6/19/2004 11:32:01 AM
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" <Beeeeeeeeeeeeves@discussions.microsoft.com> wrote in
message news:4752FB7E-CE76-4F69-A99E-3594F7E5116E@microsoft.com...
[quoted text, click to view]
http://www.planetsourcecode.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!241
8/lngWid!10/anyname.htm
[quoted text, click to view]

AddThis Social Bookmark Button