944,028 Members | Top Members by Rank

Ad:
Nov 3rd, 2009
0

code need

Expand Post »
have any code for all form. I mean, here I write
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. form1.show
  2. form2.show
  3. form3.show
But I want I write one line. like: "allform.show". or other what is right.
Similar Threads
Reputation Points: 14
Solved Threads: 78
Practically a Posting Shark
abu taher is offline Offline
835 posts
since Jul 2008
Nov 3rd, 2009
0
Re: code need
I guess only one form can be active at a time.
Last edited by ithelp; Nov 3rd, 2009 at 7:11 am.
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006
Nov 3rd, 2009
0
Re: code need
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!!!!

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Public Sub LoadAllForms()
  2.  
  3. Dim Form As Form
  4. For Each Form In Forms
  5. Form.Show
  6. Next Form
  7.  
  8. Form1.Show 1
  9. End Sub

Hope this is what you were looking for.
Reputation Points: 329
Solved Threads: 347
Senior Poster
AndreRet is offline Offline
3,700 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: DatePicker Problem
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: help pls in resizing treeview on run





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC