I want to pass an integer value to a form in .Net so that it can load the right data. I'm using this so that when I double click on a record in a list, a form opens with the data from that record loaded so it can be edited. What is the best way to do this? Should I create a property and set it before calling the Show() method, or should I overload the constructor or something and send the value in as an initialisation value that way?
Note - this doesn't need to work with sending more than one value in to the form - only one value will be needed.
It shouldn't really matter but this is in C++ .Net.