I am running into an issue where I need to pass value from a 2nd form that I open to my original main form. What I did was create a lookup form that has a datagridview. From my main form, I click on a button that would open up the 2nd form. If I double click on which ever row from the datagridview on the 2nd form, I want to transfer the ID of that rowindex back to the main form and input that to the txtID.Text from the main form, then close the 2nd form.
I did a bit of research but can't seem to get what I need working. Can anyone assisst me with some example?