Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
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
 
Old September 8th, 2004, 02:03 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default Check whether a form is already loaded

Context : VB 6.0

May I know how can I check whether a form is already open ?

This is the requirement.

If it already loaded and not visible, I need to just call show and its zindex=0. Otherwise, I need to load and position it first.
 
Old September 8th, 2004, 11:34 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Thanks to the reply for another post (http://p2p.wrox.com/topic.asp?TOPIC_ID=18846), I could do this.

dim objForm as Form
dim bForlLoaded as Boolean
bFormLoaded=false
for each objForm in vb.Forms
    if(trim(objForm.Name)=trim(myform.Name)) then
        bFormLoaded=true
        exit for
    end if
next

Thanks Phil for helping me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to check form is created or not? try.test.abc C# 1 January 11th, 2007 11:33 AM
check if page is loaded darkhalf Javascript 1 October 4th, 2005 05:26 AM
how to check if page is already loaded? phpworker Javascript How-To 0 July 31st, 2005 11:49 AM
How to check for empty fields in a form. crmpicco Javascript How-To 7 February 15th, 2005 10:38 AM
How can i know that a form is loaded. sharma_atin VB How-To 1 September 1st, 2003 10:51 AM





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