PDA

Click to See Complete Forum and Search --> : [RESOLVED] help with Var across Forms


Crash893
Feb 5th, 2007, 08:54 PM
I know this is probably going to be simple and im still googleing it but i thought i would ask just incase i dont find anything

I have to forms

form1 and frm_sum


In form1 i have

BillPass25.Frm_sum objFrm = new BillPass25.Frm_sum();
// shows in modal
// objFrm.ShowDialog();
objFrm.Show(); // shows form in normal mode


in frm_sum under form load

What should i put to access the a variable called "writepath"

lbl_location.text = ???

popskie
Feb 5th, 2007, 09:00 PM
I think you should declare your variable as static.

Crash893
Feb 5th, 2007, 09:08 PM
form1 now = =

public static string Writepath = string.Empty;

but i still cant find it in the frm_sum