Question
I need code for c# (visual studio 2015) for the following: I am trying to create a program that is as follow, The program is
I need code for c# (visual studio 2015) for the following:
I am trying to create a program that is as follow, The program is about how to allow an event handler to be clicked the same amount of times with a number that is input in a textbox.
an idea about it:
The program displays different pictures randomly after you enter the number (of picture to be display) in the textbox and then click a button ("Display Picture") the same amount of time with the input, then you are not allow to click, until you clicked to another button, "the reset button" .
example, you enter 4 in the textbox, you can click the "Display picture" button 4 times, after the 4th time you are not allow to click on the "Display picture" button, until you click on another button, the "reset button". when you click on the reset button, then you go back at the starting point where you may enter a number in the textbox and can click again the "the display picture button".
In the program there is one textbox, two pictureboxes, and one button to display picture named "display picture", and another button named "Reset".
I need the code that cast and validate the number of picture that is input in the textbox so that each time the user click on the button "display picture", , a pictures it is displayed randomly according to the number that is input in the textbox. So the number of click on the button"display picture", and the number enter should be equal after each input.
example for random number and pictures
we have 2 random number 0 and 1, and 2 pictures.
-when var1 == 0 and var2 ==0 the 2 pictures are displayed
-when var1 == 1 and var2 ==1 the 2 pictures are displayed
-when var1 and var2 are different just 1 picture will display.
thanks for your help
C# CODE IN VISUAL STUDIO 2015 THAT IS WHAT I NEED
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started