A form is nothing special. It is an object just like any other. How would you normally pass data to an object that you just created? You would pass a value as an argument to the constructor, which is the most likely choice in your case, or else you would either set a property or call a method and pass an argument. Like I said, the best option in your case would be to use the constructor. You should either edit the existing constructor or write a new one that accepts an argument of the appropriate type and assigns that value to a private member variable. The default constructor would look something like this:
Code:
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
You would need to change that to something like this:
Code:
private int recordID;
public Form1(int recordID)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
this.recordID = recordID;
}