Skip to content

Help to strore input value

ricardo rosa

Asked May 15, 2009, 7:23 AM EDT1 answer
Share
LinkedInX
Hi

I have an application and the first thing it must do is to store the input value. When i run the app, i type runapp c:\xptodir\xpto.txt, and i want to store 'c:\xptodir\xpto.txt' in a variable.

Can anyone help me?

Thanks a lot.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    create a class document say "class1.cs" in there create a string variable like public static string a=""; now when on some action you move from the current form to next form in that action (eg. Button_click) write class1.a=textbox1.text;(assuming textbox1 is your textbox where you write your i/p) On the next form for textbox1 write textbox1.text = class1.a; This should help you.
    0