Recently I've been messing around a lot with WPF, ik syntax changes a bit, but some of the problems are probably new.
I am trying to save the connection info in variables in mainform and get the values from within a class, but when I do they are NULL and I don't know why they show up as null (I am even obligated to make them static in class).
public static MainMenu x = new MainMenu();
public string cn = "Data Source=" + x.sqlip + "; Initial Catalog=" + db + "; User ID=" + x.sqlid + "; Password=" + x.sqlpw + ";";
So this is my form call + connection string builder but when i try to get the values they are null.
public string sqlid, sqlpw, sqlip;
//update details
open.sqlid = sqlusr.Text;
open.sqlpw = sqlpwd.Text;
open.sqlip = sqlip.Text;
So in top there are 2 examples. The variable declarations are in the mainmenu form, and the update details are in the loading form when they are connecting.