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 / August 2004

Tip: Looking for answers? Try searching our database.

Rename a form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wayne  Wengert - 25 Aug 2004 22:56 GMT
I created a form named "login". I then renamed it to "frmLogin" and I can
see in the properties that the file name was changed to "frmLogin.vb" but in
my code, when I refer to "frmLogin" I get the squiggles indicating that
object does not exist but "login" does?

How can I get VSNET 2003 to "see" the renamed object? I am using VB.NET code
as follows:

=============================
Dim frmLoginI As New frmLogin     '<=== Fails
Dim frmLoginI As New login            ' <== Works?

Wayne
Lloyd Sheen - 26 Aug 2004 02:02 GMT
You renamed the file.  This does not rename the class name.  You need to go
into the .vb file and change the class name.

Lloyd Sheen

> I created a form named "login". I then renamed it to "frmLogin" and I can
> see in the properties that the file name was changed to "frmLogin.vb" but in
[quoted text clipped - 9 lines]
>
> Wayne
Wayne  Wengert - 26 Aug 2004 03:17 GMT
Thanks.... That took care of it. I hope I remember that for the future.

Wayne

> You renamed the file.  This does not rename the class name.  You need to go
> into the .vb file and change the class name.
[quoted text clipped - 16 lines]
> >
> > Wayne

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.