I would like to know how I can identify an MDI-Child form, and differentiate one from another. I know how to identify it by name, as you can see as follows:
DirectCast(Application.OpenForms.Item(formulario.Name), formulario)
But what happens in this example if the same form obviously has a repeated name, I can differentiate one form from another. I want to know how I can list the forms and go through them, and be able to differentiate between them, through an identification or something, Like an open process has a PID, a form surely has something similar, right? THANK YOU
If you're talking about the open "Forms" in the application, you can make use of the
Application.OpenForms
. This is the documentationThis returns you a
FormCollection
which, in turn, is a collection ofForm
which I assume you can iterate over and get the identifier (by type).