Results 1 to 2 of 2

Thread: Creating Form Copies During Run-Time

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Posts
    77

    Creating Form Copies During Run-Time

    I know how to create copies of objects during run-time, but how do u create copies of forms during runtime?

    Thanks for reading/replying to this post....

    -Justin Gomes
    [email protected]

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    Not to difficult, here's how you do it. Add the following to a form with a command button clicking the command button with create a new copy of form1 and display it.

    Code:
    Private Sub Command1_Click()
    Dim frm As Form
    Set frm = New Form1
    frm.Caption = "Hello World"
    frm.Show
    End Sub
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

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