Results 1 to 4 of 4

Thread: another forms question

  1. #1
    Guest

    Question

    Hey again,

    I've just been working on my program and saved it, closed VB and came back to it, and I am getting this error message when it loads up:

    A conflicting names were found it 'C:\Project\frmMain.frm'. The name 'frmMain' will be used.

    The only kind of name conflicts I could see was the form's name property ('frmMain') is the same as the filenme, but the problem wasn't solved if I renamed the filename or name property to something else.

    Thanks,
    Sunny

  2. #2
    Guest
    The error ususally means that you have 2 Forms with the same name. Look at his line in your Project file (when you open it in a Text Editor)

    Form=frmMain.frm

    Is there any other lines like this underneath for above it?
    If there is then you need to Rename one of the Form's. If not, you can always start a new project and add your Form's to the new one.

  3. #3
    Guest
    I have looked at the project file, but there were no lines that were the same (ie, two Form=frmMain).

    When I started a new project and added the exisiting forms to it, the same error came out (with all 9 forms).

    I opened the form files with wordpad, but there didn't seem to be any name conflicts that I could see, other than
    Begin VB.Form frmMain
    and
    Attribute VB_Name = "frmmain"

    What is causing the error?

    Sunny

  4. #4
    Guest

    Talking

    I'd just thought I'd fool around, and opened the frmMain form file in notepad, there were these two lines:

    Begin VB.Form frmMain
    and
    Attribute VB_Name = "frmmain"

    After I changed 'Attribute VB_Name = "frmmain"' to 'Attribute VB_Name = "frmMain"' (frmMains spelt with a capital M) the error went. However, in VB the name property for frmMain is spelt as frmMain, which meant that VB for some reason saved the name without caps. Is this a human error that I could have caused somewhere?

    Sunny


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width