Data Member Not Found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amwani
    New Member
    • Apr 2012
    • 1

    Data Member Not Found

    Hi,

    I tried to copy one form in my project. I copy frmMain to frmMain2, and copy paste all the coding of frmMain to frmMain2. But unfortunately, when i run this code, i got error message method or datamember not found


    If frmMain.Visible = False Then
    PopupMenu Me.mnuTray, vbPopupMenuRigh tAlign
    End If

    I cannot have the Me.mnutray display in frmMain2. But it appears correctly in frmMain that I copied. I try to check the object browser. FrmMain contain datamember mnuTray, but frmMain2 does not contain mnuTray. How do I copy this data member mnuTray to frmMain2? Am I missing some steps? Appreciate your help.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    One thing you might try, to make a duplicate form, is...
    1. Use Windows Explorer to copy the frm file and rename the copy.
    2. Use Notepad to edit the new file, and change the form name on both these lines...
      Begin VB.Form name
      Attribute VB_Name = "name"
    3. Open your VB project and add the new form

    Comment

    Working...