Hi all,
I'm passing a bool from one form to another, I have tried declaring 'Private bool useDBServer;' at the top of my class but this create a new variable.
What am I doing wrong?
Thanks
Form1 below:
Form2 frm = new Form2(dataGridView1, _useDBServer, _useOther);
Form2 below:
public Form2(DataGridView dgv, bool useDBServer, bool useOther)
{
if(useDBServer) //<---- works here
{
//stuff
}
}
private void readRegistry()
{
if(useDBServer) //<---- but not here
{
//stuff
}
}