Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Microsoft Visual Studio (C#): How to Enter correct password to view a secret picture Add a PictureBox control to a form and use the

In Microsoft Visual Studio (C#): How to Enter correct password to view a secret picture

Add a PictureBox control to a form and use the Image property of the control to import a picture of your choice. Set the controls Visible property to false. Add a textbox for a user to enter a password and a button to submit the password. Your program should declare a class level variable named secretPassword with a password of your choice and allow a user to try at most three times to enter the correct password to view the secret picture. If the user enters a correct password your program changes the Visible property to true to show the picture. Otherwise, after three failed tries the Submit button is disabled. The pseudo-code below is one way to do this problem and you may have other solution:

Increase counter

If correct password is entered

Reveal the picture

Else

If counter less than 3

Display a message and ask use to try again

Else

Display a message and disable to button

Example:

image text in transcribed

nter password to view picture Submit

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

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students also viewed these Databases questions