An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
A datatable is an object everything in .NET is an object even string data is an object, as an example.
When you call the form, pass the datatable into the form using its form constructor.
https://blogs.msmvps.com/deborahk/passing-data-between-forms-constructor/
public partial class Form2: Form
{
// Variable to store the passed in text
datatable passedIndt;
public Form2(datatable dt)
{
InitializeComponent();
this.passedIndt= dt;
}
}
private void Button1_Click(object sender, EventArgs e)
{
Form2 frmForm2 = new Form2(yourdatatable);
this.Hide();
frmForm2 .ShowDialog();
this.Show();
}
You pass it into the other form and have at it.