VB IDE problem?

I have a project with 25+ forms. Recently, when after I added a form, saved it and reloaded VB6 and then the project, I got the following message:

Conflicting names were found in 'C:\PetroBoard\Source Code\frmItemMstr.frm'. The name 'frmItemMstr' will be used.

Also, all my forms' code windows are open. I have to close all of them evrytime, something that takes a while.

Any ideas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Open the frmItemMstr.frm file and look at the second line "Begin VB.Form <name>". The name should be 'frmItemMstr'. Then there's a line starting with "Attribute VB_Name = <name>". One of these two lines contains the wrong name, correct it, save the file and it will work just fine. ;)

The file with the .vbw extension contains information about which forms/classes etc that are open.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mfarid1Author Commented:
Fantastic. Worked like a charm. Thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.