In Visual C# when I click a button, I want to load another form. But before that form loads, I want to fill the textboxes with some text. I tried to put some commands to do this before showing the form, but I get an error saying the textbox is inaccessible due to its protection level.
How can I set the textbox in a form before I show it?
 private void button2_Click(object sender, EventArgs e)
    {
        fixgame changeCards = new fixgame();
        changeCards.p1c1val.text = "3";
        changeCards.Show();
    }