D
Daniel Friend
I have a bunch of mdi child forms and I use a collection for which forms are
opened. I would like to call a public function in the open forms called
ChangeFormat, but I am getting the following error:
'ChangeFormat' is not a member of 'System.Windows.Forms.Form'.
Can somebody tell me how I can achieve this?
Thanks,
Dan
Example Code:
----------------------------------------------------------------------
Public Sub ChangeFormat()
Try
Dim frmAny As Form
For Each frmAny In Forms
Try
frmAny.ChangeFormat()
Catch
End Try
Next
Catch ex As Exception
End Try
End Sub
opened. I would like to call a public function in the open forms called
ChangeFormat, but I am getting the following error:
'ChangeFormat' is not a member of 'System.Windows.Forms.Form'.
Can somebody tell me how I can achieve this?
Thanks,
Dan
Example Code:
----------------------------------------------------------------------
Public Sub ChangeFormat()
Try
Dim frmAny As Form
For Each frmAny In Forms
Try
frmAny.ChangeFormat()
Catch
End Try
Next
Catch ex As Exception
End Try
End Sub