All,
I have an MDI windows application that has many forms. I want to loop through the mdichildren collection searching for the specific form. A for each loop is in my mind the best way to do this. However, the code I have generates an invalid cast message and I don't know why. The code is below, please help.
Private Sub ShowSupportPage()
Dim oTimeForm As TimeCollection
For Each oTimeForm In Me.MdiChildren
oTimeForm.tmrTimeCollection.PauseTime()
Next
End Sub
Thanks
Jim