I know that it is possible to create a list of forms with "List Of", below how the list would be to be able to identify:
Private ChildFormList As List(Of Form) = New List(Of Form)()
I would like to know if it is possible to add to this list of forms, in the same list, a variable of type "Integer" and a toolstrip button "toolstripbutton", then an imaginative solution, it is to explain myself.
Private ChildFormList As List(Of Form, Integer, ToolstripButton) = New List(Of Form, Integer, ToolstripButton)()
The idea is that each form generates a corresponding number with a button, for example
form.name("Form 1"), 1, toolstripbutton.name("button1")
That is to say that the form "Form 1" corresponds to the number 1, and the button called "button1", with this I differ from a matrix, where there can be more than one form than a number, or a button. Each form must contain a number and a button! I hope I have expressed myself well, thank you
It occurred to me to use a dictionary, for which it would be as follows:
It seemed to me the correct way to use, and I enumerate them by getting the index. In this way I get an answer to my own answer, I hope it helps someone