Problem renaming a Form

divjoy

Well-known member
Joined
Aug 25, 2013
Messages
109
Programming Experience
1-3
Hi ,

I'm using vb.net 2010 express and I have a form in my vb.net project called frmEditStaff.vb

I have many other form and they all start with uppercase FrmEdit....

I tried renaming to FrmEditStaff so that I can then do

Dim frmEStaff As New FrmEditStaff
frmEstaff.show

But its not allowing me to rename the form but yet the above code snippet still runs

as

Dim frmEStaff As New frmEditStaff
frmEstaff.show

I have tried renaming and then saving project and reopening but it still reverts to frmEditStaff !

Has anyone seen this problem before and how to fix it?

Suggestions on the Web are to create a new form and copy and paste over all the code...

Its as if its a class instance?

kind regards
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,307
Location
Norway
Programming Experience
10+
Identifiers in VB code is not case sensitive (but will retain name casing as they were declared) so that is not considered different names. Instead rename first to something else, then rename back with new casing.
 
Top Bottom