I have a hard time understanding the whole passing strings thing in C#.
I thought that simply by putting example:
public string IMAGELOC;
at the begining of code made it Public to everything everywhere in that .cs file.
But that seems not to be the case.
I have tried to read some passing strings tutorials but I still have hard time understanding them.
Anyone care to show me how to get my IMAGELOC string from 1 place to another and maybe nlighten me a simple explanation ?
public void ListBox1_MouseDoubleClick(object sender, MouseEventArgs e)
string IMAGELOC = "mypath to file";
public void pictureBox2_Click(object sender, EventArgs e)
Form2 newForm2 = new Form2();
public class Form2 : Form
private PictureBox picbox2 = new PictureBox();
AutoSize = true;
AutoSizeMode = AutoSizeMode.GrowAndShrink;
picbox2.SizeMode = PictureBoxSizeMode.AutoSize;
picbox2.ImageLocation = IMAGELOC