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.

Recommended Answers

All 2 Replies

I guess only one form can be active at a time.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.