Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 8th, 2004, 02:05 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default List of open forms

Context : vb 6.0

How can I get a list of all loaded forms of my VB application ?
  #2 (permalink)  
Old September 8th, 2004, 02:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Use the Forms collection
  #3 (permalink)  
Old September 8th, 2004, 11:27 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Dear Phil,

Thanks for the suggestion. It is working.

For newbies, let me post the code.

dim objForm as Form
for each objForm in vb.Forms
    msgbox objForm.Name
next


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Excel to display created forms Borhani Excel VBA 2 January 19th, 2008 07:42 AM
open a report from a list box Bob Peterson Access VBA 2 January 16th, 2007 06:17 PM
Open/Close Multiple Forms dzisaacs C# 2 August 20th, 2006 05:25 PM
Access Forms Open Method of Passing Parameters androman Access VBA 8 September 22nd, 2004 09:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.