I understand PowerShell but this is my first ever attempt at C# using Visual studio 2013.
I want to be able to click one of my programs, get a description of it and then choose to run it.
So far I have most of what I want but I am stuck on the variable portion.
I think the issue is the variable does not carry into the next code block for lack of a better understanding.
Hope the picture is shown.
I click FindTST radio button and I get my description of what it does in the text box. That part works fine.
After I see what it I want to click run it and have it start the program.
So I have stored it in a variable called path1 but the button that says RunIT does not seem to recognize the variable path1.
My code is below.
Thanks
when comparing your suggested change with what i posted i only see the one addition of the line
string path1 = "";
This does not solve the issue of how to make that sting visible outside of that function. When i click run it it sees path1 as equal to nothing.
I did look at the link you provided but i have not yet figured out what i am missing.
The idea is what ever button i click it would set the path1 variable to the location of the file i want to run. then i can click RunIT and it will run that file externally. Thanks
This link is for javascript but most variables across all languages work the same way.
https://msdn.microsoft.com/en-us/library/ie/bzt2dkta%28v=vs.94%29.aspx
to fix it declare this outside of your function and RBFindTST_CheckedChanged shold look like this after.
Open in new window