Polling Headers on multiple MDI child forms?? 
Author Message
 Polling Headers on multiple MDI child forms??

Is there a way to check the headers of all visible MDI child forms ?

Each will have it's file name as a header, and I would like to be able
to check all file names before allowing the loading of a new file --
to prevent duplication of open files.

 formxx.count doesn't seem to work,  

thanks.



Mon, 20 Jul 1998 03:00:00 GMT  
 Polling Headers on multiple MDI child forms??

reservoirs of wisdom:

#define HEADER Title

(I'm learning C now :()

Quote:
>Is there a way to check the headers of all visible MDI child forms ?
>Each will have it's file name as a header, and I would like to be able
>to check all file names before allowing the loading of a new file --
>to prevent duplication of open files.
> formxx.count doesn't seem to work,  

For i% = 0 To Forms.Count - 1
   If Forms(i%).Title = FileName$ And Forms(i%).MDIChild = True
Then
                '...
        End If
Next i%

.. should work.

Jens
--
Everything I said are the opinions of someone else.
I just cut-and-pasted.

Jens Balchen jr.       http://www.sn.no/~balchen



Tue, 21 Jul 1998 03:00:00 GMT  
 Polling Headers on multiple MDI child forms??

Quote:

> Is there a way to check the headers of all visible MDI child forms ?

> Each will have it's file name as a header, and I would like to be able
> to check all file names before allowing the loading of a new file --
> to prevent duplication of open files.

Why not just lock the file when you open it, and then check the
lock state when you attempt to reopen it?  Would be faster, and
you only have to check once, instead of any * n windows times...
You could even allow the file to be opened, just mark the newly
opened item as *read-only* in the status bar of your project.

Michael.



Tue, 21 Jul 1998 03:00:00 GMT  
 Polling Headers on multiple MDI child forms??
Hi all,
        is there a method in VB3 to stop the user from switching between
active windows, from within an active VB program, using ALT-TAB key
press.

Here is hopeing...

Andy

--
Time is but a small tear on the fabric of the universe.



Sun, 26 Jul 1998 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Q: Form activate Fires On Non Child MDI Forms But Only Once On Child Mdi Forms

2. Modifying object in MDI Parent form from MDI Child form

3. Make a reference to a MDI form with a reference of a MDI child form

4. ? VB3-Multiple Forms w/o MDI children ?

5. MDI-Child form and positon on MDI-form

6. Developing OLE MDI Child forms displayed on Control MDI Form

7. Accessing data on multiple MDI Child forms -Please Help

8. Accessing data on multiple MDI child forms?

9. MDI child forms on top of a picture on a MDI form

10. Help with MDI Forms and MDI child forms

11. Modal non MDI forms and Modeless MDI child forms in VB 5.0

12. Allow MDI Child form to overlap Aligned Picture Box in MDI Form

 

 
Powered by phpBB® Forum Software