Does not exist in current context (Visual C#)
<p>I have an error coming up saying; The name 'map' does not exist in current context. What am I doing wrong?
Sorry I am quite new to coding...</p>

<pre><code>public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {
        variables();
    }

    public static void variables()
    {
        string[,] map;
        map = new string[140, 140];

    }

    public static void updateMap(string[,] map)
    {
        MessageBox.Show("a");
    }

    private void Form1_KeyDown(object sender, KeyEventArgs e)
    {
        updateMap(map);

    }


}
</code></pre>
