Sorry about the cryptic subject line, but I have a bizzare situation...
Upgraded to the latest version of VS 2019 this morning and something stopped working -
I'm passing some argunments from one form to another, by making them public on the recieving form. I've done this many times before, and prior to the upgrade this was working.
Code is very similar to this:
The variables in my application are instantiated class objects and int. In the receiving form (Form_2 here} the int variables show as zeros, and the class objects show as nulls.
It used to work, now it doesn't.
Is there a project file that might have become corrupted?
TIA
Dave
Upgraded to the latest version of VS 2019 this morning and something stopped working -
I'm passing some argunments from one form to another, by making them public on the recieving form. I've done this many times before, and prior to the upgrade this was working.
Code is very similar to this:
Passing code variables:
public partial class Form2 : Form
{
public int varA;
public int varB;
public string txt;
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
int varC = varA;
}
}
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form2 frm = new Form2();
frm.varA = 2;
frm.varB = 3;
frm.txt = "Hello world";
frm.ShowDialog();
}
}
The variables in my application are instantiated class objects and int. In the receiving form (Form_2 here} the int variables show as zeros, and the class objects show as nulls.
It used to work, now it doesn't.
Is there a project file that might have become corrupted?
TIA
Dave