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, vbPopupMenuRightAlign
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.