Rename a Class

  • Thread starter Thread starter Laurence Nuttall
  • Start date Start date
L

Laurence Nuttall

I have a solution that has two projects
one a class library, and the other a windows
application that I use to test the class library.
The class library project has a class called Class1.

When I reference the class in the windows app
I say

Dim clsAbout As New About.Class1
clsAbout.ShowAbout()

I want to change the name of the Class1 to something
more meaningfull, by right clicking on it.

I can do that, but in my windows app
where I say

dim clsAbout as new about.

class1 is still listed, not the new name I gave to the
class object.

How can I rename the external name of the class object?

Thanks In Advance,

Laurence Nuttall
Programmer Analyst III
UCLA - Division of Continuing Education
 
Hello Laurence,

It sounds to me that by right clicking on the class and changing the name
you have changed the name of the file..but the name of the Class itself is
unchanged in code...

What does the name of the class say in the Class declaration line? if...

Public Class Class1
....
you will need to change it..

Phill
 
Back
Top