i have a constructor:
public Form1(string startDate, string endDate, string cbQCValues,string cbAnalytes, string cbInstruments,bool copy_of_form)
{
InitializeComponent();
dateStart.Value = Convert.ToDateTime(startDate);
dateEnd.Value = Convert.ToDateTime(endDate);
GenerateGraph();
}
and i also have an onLoad
private void Form1_Load(object sender, EventArgs e)
{
string qcvalues_query = "SELECT DISTINCT name FROM qvalues ORDER by name";
string analytes_query = "SELECT DISTINCT compound FROM qvalues ORDER by compound";
string instruments_query = "SELECT DISTINCT instrument FROM batchinfo WHERE instrument <> '' AND instrument is not Null ORDER by instrument";
...
...
}
what gets executed first? i need to make sure that the onLoad gets executed first
is this posible?