Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / March 2005

Tip: Looking for answers? Try searching our database.

Visual Studio not changing references forms when the name is changed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henry - 09 Mar 2005 16:48 GMT
I don't know if this is just something i am doing wrong, but I was working
through a tutorial using Visual Studio and a C# windows application.

The first two actions I took after creation the new solution and project
were to:
1. Rename the Form1.cs file to the application name I had chosen, and
2. To rename Form1 to a new name.

I then added some other controls, saved the file, and attempted to do a
build. and got the error message:

"... The type or namespace name 'Form1' could not be found (are you missing
a using directive or an assembly reference?)"

In checking the source code I found that there was still a reference to
Form1
================
static void Main()

{

Application.Run(new Form1());

}

===========================

My thought is that under normal circumstances, changing the form property
through the properties window should have modified this reference, but it
did not.

Can someone please explain this?  Am I doing something wrong?
nordloewe - 28 Mar 2005 15:53 GMT
hi, Henry!

i'm having exactly the same problem.
have you found out its cause and solution?

nordloewe

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.