Passing Variables to Button Click Event
<p>I'm developing my near-zero c# programming via a very simple game in a windows form. On my latest form, I declare new variables with variables passed from other forms. However, I can't access variables from other methods.</p>

<pre><code>public Form3(int str, int dex, int vit, int arc, int hp, int mp, int sp, string name, string charClass)
    {
        InitializeComponent();
        int point = 0;
        int level = 1;
        int exp = 0;
        int hpPotions = 1;
        int gold = 20;
        int travelDistance = 1;
        nameBox.Text = name;
        maxhpBox.Text = hp.ToString();
        curhpBox.Text = hp.ToString();
        maxmpBox.Text = mp.ToString();
        curmpBox.Text = mp.ToString();
        maxspBox.Text = sp.ToString();
        curspBox.Text = sp.ToString();
        strBox.Text = str.ToString();
        dexBox.Text = dex.ToString();
        vitBox.Text = vit.ToString();
        arcBox.Text = arc.ToString();
        pointsBox.Text = point.ToString();
        levelBox.Text = level.ToString();
        expBox.Text = exp.ToString();
        classBox.Text = charClass;
    }

    public int TravelDecider()
    {
        Random travelInt = new Random();
        int travelValue = travelInt.Next(1, 10);
        return travelValue;
    }
    private void Form3_Load(object sender, EventArgs e)
    {

    }

    private void button1_Click(object sender, EventArgs e)
    {

    }

    private void rightBtn_Click(object sender, EventArgs e)
    {
        int travelValue = TravelDecider();

        if (travelValue == 1)
        {
            locdescBox.Text = "During your travels, you encounter nothing of interest along the way. There is the occasional merchant or villager along the road, all seemingly bent on getting to their destination in good time.";
            travelDistance++;
        }
    }
</code></pre>

<p>The last bit of code with travelDistance++ is my issue as it doesn't exist in current context.</p>

<p>Some other solutions I found on other sites involved using get; set; (which I'm not at all familiar with) and other alternatives that were way beyond me.</p>

<p>Sorry after the fact as I'm sure this is a really beginner mistake, and I'm honestly not sure if Overflow welcomes people at this low of a level, so sorry if that's the case. If there's somewhere else I should be starting to develop a skill that ties into this, I'd welcome the advice. I appreciate the help.</p>