[help]Using a variable from my main form in another form?

So im making a word game for college and a timer ticks down from 2 minutes and stops when they have successfully guessed the word. When they have guessed the word a messagebox will pop up and ask them if they want to save their score, if yes then a new form will open with the ability to save their score.

So I save the score in the main form by creating a double saveScore = double.Parse(lblTimer.Text);

What I want to know is how do I access the double saveScore that I created in my main form and use it within my score form?

Ive lines of code are needed let me know, I thought maybe it was something silly and easy that I'm just skimming over and can't figure out.

Thanks 🙂

by kiliimanjaro via /r/csharp

Leave a Reply