Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Multiple instances of a Form

Posted on 2003-03-10
Medium Priority
Last Modified: 2010-05-01
I'm creating an application where I need to be able to have multiple instances of a form open at once. The form I want to have multiple instances of is an MDI Child (if that makes a difference). I need to have that form, everything on it, all it's procedures and everything working exactly the same on each instance of the form. Can someone tell me if there is an easy way to do this?

Question by:dankennedy

Accepted Solution

JohnMcCann earned 500 total points
ID: 8107901
Yes there is an easy way

First you need a collection tostore all your forms in


m_Collection as collection

To create an instance of your form

dim frm as new Form
load frm
m_Collection.add frm
LVL 11

Expert Comment

ID: 8108193
pretty much same as  JohnMcCann  solution...

Private Sub ShowForm_Click()
    Dim frm As frmFormName
    Set frm = New frmFormName
    Load frm
    frm.Show ' this will open an instance of the form you specify in the frmFormName
End Sub

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question