The "header" for any "User Created" object in vb is just the part of the file you cannot see in VB.
ALL User created user objects are just "POT"s ("P"lain "O"ld "T"ext Files). It is just the IDE which hides te messy details from the grubs (e.g. bugs (or programmers) toiling in the dark?). To 'see' this other world, open ant text processor (WORDPAD?). 'Navigate' to where some vb objects exists. Pick one (.frm is perhaps the most verbose header object type). Open it (from WORDPAD / Your fav text editor). At te VERY top you will see something like:
VERSION 5.00
Begin VB.Form frmVehicleList
(Yes, it SAYS ver 5.00 -even though it is a ver 6 Form!)
The second line shows the object name frmVehicleList
Scroll down through the 'header' (sloowly please) and you will find sonething like:
Attribute VB_Name = "frmVehicleList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Not the FIRST attribute VB_Name -AND the Assignmnet- Oh Look - it is (In this instance) the SAME as the Form name assigned in the second line. These are the two header items which -when they do not agree- cause the error noted previouosly.
Since mush (MOST) of my VB work experience has been in De-scrambling the trash generated by 'others', I have become somewhat cavalier in mucking about in this area of the dungeon. however I would generally encourage making a back up of what ever object(s) you want / need to change BEFORE making any change(s), making VERY few changes, saving the object (from your text editor), closing the text editor file, opening VB, CAREFDULLY inspecting the changes, and repeating for additional "SMALL" changes. Being a doufus cavalier, I often just write a new procedure in a seperate VB project (sometimes even Ms. Access) and make changes via code. I do, however, still make back up copies of each object BEFORE maknig changes. And, the changes I make in this manner are usually fairly trivial. If you look at the stttuuuuuffffffff in the 'header' (for a form) it includes mostly properties of control objects - particularly the ones which are different from the default (Backcolor, Font, ...). Retro fitting a project w/ a lot of 'creativity' can be time consuming, so it is somewhat easier to just remove the properties than to 'wrestle' them into the standard/default setting. At least you start w/o the distraction. For Your narrow purpose, I would suggest that you just find the name thinnnggggyyyyysssss and fix them. In some other situation, you may want to look into this further.
P.S. If you know of any VB work available, I would appreciate the opportunity ot offer my services.
MichaelRed
mred@att.net
There is never time to do it right but there is always time to do it over