Let me start off by saying that I am used to procedural coding, and I haven't quite grasped all of OOP. I have an assignment that I am having issues with. I need to create a random number (preferably when the form loads), then have the user continue to guess until they have gotten the correct answer, while the program keeps track of the number of tries.
So my problem is with the random number. I need to create a number in Form_Load, but how do I pass that number over to a btn_click procedure so I can check the guess against the random number?
Tags: