• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

infinite amount of forms without using mdi forms?

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
andyakira
Asked:
andyakira
  • 2
  • 2
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
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
 
andyakiraAuthor Commented:
yes, kind of like how AIM (instant messanger) would be? get a new IM in a new window.?
0
 
andyakiraAuthor Commented:
lets say form2 had a text box how would i add incomming message to each new f2? f2.text1.text=message:f2.show?
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now