Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions