Duplicating the specified form in run-time is very useful in my system. The problem is when I created it, I can't unload it.
I have 3 forms (frmMain, frmSub, frmIDK):
User can spam whatever he want. The main problem here is how to save/store a duplicated frmMain?
I have 3 forms (frmMain, frmSub, frmIDK):
Code:
' This code is for frmIDK
' frmIDK duplicates the frmMain when he pressed the Duplicate Button
Private Sub Duplicate_Click()
Dim FRM As New frmMain
FRM.Show
End
Code:
' This code is for frmMain
' frmMain duplicates the frmSub when he pressed the Duplicate Button
Private Sub Duplicate_Click()
Dim FRM As New frmSub
FRM.Show
End Sub
Code:
' This code is for frmSub
' frmSub unloads a frmMain when he pressed the Unload Button
Private Sub Unload_frmMain_Click()
' Unload ???
End Sub
User can spam whatever he want. The main problem here is how to save/store a duplicated frmMain?
Last edited: