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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

771 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