Picking letter and number combination. Also clearing out the fields
Selection of Patterns
Add this after the InitializeComponent to render the first pattern after opening
Change the string to the specific path of pattern pictures named with 1, 2 and so forth.
pictureBox2.Image = Image.FromFile(@"(path of file)" + counter + ".png");
To speed up the randomizing effect on the screen, change the sleep time in randomize_letter()
and randomize_number()
Thread.Sleep(50);
Change the screen size to your preferred size. I set it as 1920
to maximize my own screen
Known | Possible Cause |
---|---|
Occasionally wrong number combination is being displayed when being clicked | The thread is slow when refreshing the list of numbers that depends on the letter selected |
After pausing the thread, the combination displayed is different to the list of selected combination | The thread sleep is too fast, the number moves a little bit after pausing and leads to wrong combination |
Second bug can be fixed with a work around which is putting a longer Thread.Sleep
to let it refresh the list of number that should come with the selected letter. Basically clicking the button too fast will result to uneven results of combinations
This repository thrives on your contributions! ❤️ To get involved, just create a pull request explaining the request and I'll be happy to merge it if necessary