I've searched all over the Net and here on DL but I can seem to find only information on passing a single argument when opening a new form. When I attempt to send more than one I get the "Too many arguments to 'Public Sub New()'" error. I am trying to send three arguments that I need passed to new new form. I was attempting to use the three arguments/variables in the LOAD event of the new form as they are needed for the initial state of the new form.
Form one has a DataGridView populated from an XML file. I am attempting to pass the path of the path of the specific XML file and the one line of the DGV that the user currently has selected so that when the form loads it can open the XML from the provided path and populate the DGV with the current selected row from form one already selected in the DGV on the new form. All three pieces of information that are to be sent as arguments are properly set to variables in form one as I had tested them by printing the to console as well as a MsgBox so they are ready to be sent but cannot figure out how to send them.
I usually always provide code however I have tried so many methods that haven't worked that I am not even sure what to try showing here. Out of slight frustration I've deleted everything from the second form's .vb file haha So there's really nothing I could currently post from that.
But I tries creating a module to publicly declare the three variables and use it on both forms so that the first form could set the variables to a value and the new form could grab the values from there but any examples I had found online to do so failed to work for me and most of the threads were 'locked' due to age so I could not continue the thread for more info specific to my case.
I will try to answer any questions that may help. There's got to be a way to do this haha And once I know..then I will have learned it and ca pass my knowledge on. I greatly appreciate any and all help!