Solved

infinite amount of forms without using mdi forms?

Posted on 2004-09-18
4
177 Views
Last Modified: 2010-07-27
is it possible to have an infinite amount of forms without using mdi forms? , can someone show me how if its possible to do this.
0
Comment
Question by:andyakira
  • 2
  • 2
4 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 12094200
Hi andyakira,

Could you explain your question in a little more detail?  What you do you mean by "an infinite amount of forms without using mdi forms"?

You can open up as many forms as you want without an MDI interface.  They are just seperate windows that can be moved independently of each other.

For example, you can create a new instance of Form2 like this:

    Private Sub Command1_Click()
        Dim F2 As Form2
        Set F2 = New Form2
        F2.Show
    End Sub

Regards,

Idle_Mind
0
 

Author Comment

by:andyakira
ID: 12094320
yes, kind of like how AIM (instant messanger) would be? get a new IM in a new window.?
0
 

Author Comment

by:andyakira
ID: 12094329
lets say form2 had a text box how would i add incomming message to each new f2? f2.text1.text=message:f2.show?
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 12094463
You would have to keep your references to your new forms in either an array or a collection so that you can get to them again.  If you don't then you could use the .Tag property to uniquely identify each new window and then find it again by iterating throught the forms collection.

Idle_Mind
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Path of Workbook 3 77
Tax Considerations for positive outcomes, outside the U.S. for IT Professionals 3 43
iframe detection of parent window scale 20 72
Query Syntax 17 36
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

777 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