multiple copies of the same form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jacobevans
    New Member
    • Aug 2007
    • 26

    multiple copies of the same form

    I'm trying to make a class mod where i can have multiple copies of one form. this is what i have so far.

    Code:
    Public PCForm As New frmPC, strName As String
    Private Sub Class_Initialize()
    Set PCForm = New frmPC
    Load PCForm
    PCForm.Show
    PCForm.txtPCName.Text = strName
    End Sub
    
    Private Sub Class_Terminate()
    Set PCForm = Nothing
    End Sub
    any suggestions?
  • daniel aristidou
    Contributor
    • Aug 2007
    • 494

    #2
    Originally posted by jacobevans
    Code:
    Public PCForm As New frmPC, strName As String
    Private Sub Class_Initialize()
    Set PCForm = New frmPC
    Load PCForm
    PCForm.Show
    PCForm.txtPCName.Text = strName
    End Sub
    
    Private Sub Class_Terminate()
    Set PCForm = Nothing
    End Sub
    any suggestions?
    What does this code return.....
    What results are you getting at present?

    Comment

    Working...