0

have any code for all form. I mean, here I write

form1.show
form2.show
form3.show

But I want I write one line. like: "allform.show". or other what is right.

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by AndreRet
0

Abu,

Try the following. Yes you can display more than 1 form, Just set the focus to the form you need. Remember that every form takes up memory, slowing your application!!!!

Public Sub LoadAllForms()

Dim Form As Form
   For Each Form In Forms
      Form.Show
      Next Form

Form1.Show 1
End Sub

Hope this is what you were looking for.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.