Nov 8, 2001 #1 bnath001 Programmer Aug 18, 2000 100 US HI, I have a VB project and it has an MDI form. How do I know what are the forms that are loaded currently. could some one give me some suggestions please. thanks nath
HI, I have a VB project and it has an MDI form. How do I know what are the forms that are loaded currently. could some one give me some suggestions please. thanks nath
Nov 8, 2001 #2 balves Programmer Oct 24, 2000 983 US Use the Forms collection. Loop through the Forms collection with either a For..Each or For...Next loop. For I = 0 To Forms.Count - 1 do something with Forms(I).<property> Next I Or Dim frmForm as Form For Each frmForm in Forms do something with frmForm Upvote 0 Downvote
Use the Forms collection. Loop through the Forms collection with either a For..Each or For...Next loop. For I = 0 To Forms.Count - 1 do something with Forms(I).<property> Next I Or Dim frmForm as Form For Each frmForm in Forms do something with frmForm
Nov 8, 2001 Thread starter #3 bnath001 Programmer Aug 18, 2000 100 US I tried using your code For i = 0 To Forms.Count - 1 'do something with Forms(I).<property> MsgBox "hello this is " & Forms(i) Next i I would like to know the name of the form which is opened. when the control reaches the Msgbox statement, there is no property. any help please. thanks nath Upvote 0 Downvote
I tried using your code For i = 0 To Forms.Count - 1 'do something with Forms(I).<property> MsgBox "hello this is " & Forms(i) Next i I would like to know the name of the form which is opened. when the control reaches the Msgbox statement, there is no property. any help please. thanks nath
Nov 9, 2001 #4 JustinEzequiel Programmer Jul 30, 2001 1,192 PH MsgBox Forms(i).Name Upvote 0 Downvote