C
C#4mo ago
ʙʀʊʍɨ

Moving integer from one form to another

I'm making a geography software in WinForms and I want to display the score of a quiz on another form. How can I transfer the integer from one form to the other?
1 Reply
Pobiega
Pobiega4mo ago
References! You'll need to decide what "owns" the data and what just access it from where its owned. Then you simply pass a reference of the owner object to the form, and the form can access the data from there