IceCream, it seems like you've already learned quite a few useful things. You at least know: - how to create a window - make a 4x4 grid of square buttons - put circles in the buttons - randomly place the circles in buttons That's pretty good going.
Are you in a rush to do this? I mean, if you only have a week left in Japan, could you leave this stuff until you get home and just enjoy your last week there?
re: the code in your post, is the problem that you want the circles to display as soon as the program is run, instead of only after you press the 'new game' button? If so, just hit enter twice after the last 'End Sub' and put 'NewGame()', and that should call the NewGame function without pressing the button. Make sure you put it on the line before 'End Class'.
edit: perhaps I've misunderstood, and the program currently only shows what's in the squares after you click on one/some squares? Whatever the case, to make something that usually only happens when you click a button happen automatically, you need to take it out of the function that's called when you click a button, and just put it in the same place as I mentioned to put 'NewGame()'.
, it seems like you've already learned quite a few useful things. You at least know: - how to create a window - make a 4x4 grid of square buttons - put circles in the buttons - randomly place the circles in buttons That's pretty good going.
Are you in a rush to do this? I mean, if you only have a week left in Japan, could you leave this stuff until you get home and just enjoy your last week there?
re: the code in your post, is the problem that you want the circles to display as soon as the program is run, instead of only after you press the 'new game' button? If so, just hit enter twice after the last 'End Sub' and put 'NewGame()', and that should call the NewGame function without pressing the button. Make sure you put it on the line before 'End Class'.
edit: perhaps I've misunderstood, and the program currently only shows what's in the squares after you click on one/some squares? Whatever the case, to make something that usually only happens when you click a button happen automatically, you need to take it out of the function that's called when you click a button, and just put it in the same place as I mentioned to put 'NewGame()'.
Sounds like something I tried to do in proce55ing before I forgot to keep learning the language.