Solved

infinite amount of forms without using mdi forms?

Posted on 2004-09-18
4
175 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
Comment Utility
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
Comment Utility
yes, kind of like how AIM (instant messanger) would be? get a new IM in a new window.?
0
 

Author Comment

by:andyakira
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now