Create a project named animated with a form

Assignment Help Programming Languages
Reference no: EM131292298 , Length:

Question 1. Locate an animated .tif file on the Web. Create a project named Animated with a Form that contains a PictureBox. Display three different messages on a Label-one when the user's mouse is over the PictureBox, one when the mouse is not over the PictureBox, and one when the user clicks the PictureBox.

Question 2. Emma's Custom Embroidery sells shirts with detailed embroidered images. Emma allows users to select the color for a shirt, but she allows only specific embroidery designs with each shirt color. Create a project named EmmasEmbroidery that allows a user to choose one of four shirt colors from a ListBox-white, black, red, or blue. When the user selects a shirt color, the program should display a second ListBox that contains the following embroidery design choices:

- White shirt-peacock, palm tree, or rose
- Black shirt-race car, star, or moon
- Red shirt-palm tree or moon
- Blue shirt-peacock or moon

After the user selects an embroidery design, the program should display a congratulatory message on a Label indicating that the choice is a good one, and the design ListBox also becomes invisible. If the user makes a new selection from the shirt color ListBox, the congratulatory message is invisible until the user selects a complementary design.

Hint: You can remove the entire contents of a ListBox using the Items.Clear() method, as in this.listBox1.Items.Clear();.

Question 3. Create a project named GuessANumber with a Form that contains a guessing game with five RadioButtons numbered 1 through 5. Randomly choose one of the RadioButtons as the winning button. When the user clicks a RadioButton, display a message indicating whether the user is right.

Add a Label to the Form that provides a hint. When the user's mouse hovers over the label, notify the user of one RadioButton that is incorrect. After the user makes a selection, disable all the RadioButtons.

Question 4. Create a project named PickLarger with a Form that contains two randomly generated arrays, each containing 100 numbers. Include two Buttons labeled "1" and "2". Starting with position 0 in each array, ask the user to guess which of the two arrays contains the higher number and to click one of the two buttons to indicate the guess. After each button click, the program displays the values of the two compared numbers, as well as running counts of the number of correct and incorrect guesses. After the user makes a guess, disable the Buttons while the user views the results. After clicking a Next Button, the user can make another guess using the next two array values. If the user makes more than 100 guesses, the program should reset the array subscript to 0 so the comparisons start over, but continue to keep a running score.

Answer the following questions-

1. The EventArgs class contains a static field named __________.
a. Empty
b. Text
c. Location
d. Source

2. When creating events, you can use a predefined delegate type named __________ that is automatically provided by the .NET Framework.
a. EventArgs
b. EventHandler
c. EventType
d. Event

3. Which of the following is not a predefined Control event?
a. MouseEnter
b. Click
c. Destroy
d. TextChanged

4. A single Control can raise __________ event(s).
a. one
b. two
c. five
d. any number of

5. When you create Forms with Controls that raise events, an advantage to creating the code by hand over using the Visual Studio IDE is __________.
a. you are less likely to make typing errors
b. you save a lot of repetitious typing
c. you are less likely to forget to set a property
d. you gain a clearer understanding of the C# language

6. When a Form contains three Controls and one has focus, you can raise an event by __________.
a. clicking any Control
b. pressing Enter
c. either of these
d. none of these

7. The TabStop property of a Control is a(n) __________.
a. integer value indicating the tab order
b. Boolean value indicating whether the Control has a position in the tab sequence
c. string value indicating the name of the method executed when the Control raises an event
d. delegate name indicating the event raised when the user tabs to the Control

8. The TabIndex property of a Control is a(n) __________.
a. integer value indicating the tab order
b. Boolean value indicating whether the Control has a position in the tab sequence
c. string value indicating the name of the method executed when the Control raises an event
d. delegate name indicating the event raised when the user tabs to the Control

9. The Control that causes an event is the __________ argument to an event method.
a. first
b. second
c. third
d. fourth

10. Which of the following is true?
a. A single event can be generated from multiple Controls.
b. Multiple events can be generated from a single Control.
c. Both of the above are true.
d. None of the above are true.
(Farrell 668-669)

Farrell, Joyce. Microsoft Visual C# 2012: An Introduction to Object-Oriented Programming, 5th Edition. Cengage Learning, 20130304. VitalBook file.

Verified Expert

This assignment uses C# window form. Totally 4 windows forms is designed together with this 10 choice based question is answered. The c# windows form displays a picture box together with the label. The label display the action performed by the user on the picture box. Another windows form uses a Listbox which is used to select the shirt color and embroidery design choices for each of the shirt color. The third windows form uses a group radio buttons and label. This application pick a number and make the user to guess the number. The fourth windows form uses two arrays of 100 numbers each. The user is made to guess which of the two array element is large and thus the count on number of loss and gain is stored and displayed

Reference no: EM131292298

Questions Cloud

Develop a thesis pertaining to the assigned film text : Develop a thesis pertaining to the assigned film text and whether or not it, the film, in your view has the power to transform one's political sensibilities.
Strategic controls and financial controls : What is organizational structure and what are organizational controls? What are the differences between strategic controls and financial controls? What is the importance of these differences?
Discuss about the chess and its featuers : What are his main reasons and examples for his claim that "American democracy" is a myth? Probe his reasons and examples with questions before justifying your agreement or disagreement with his argument.
How were business and businesspeople portrayed : Is there anything business could or should do to improve its media image? Some businesses try to stay out of the limelight. Why might that be? What do you think of that strategy?
Create a project named animated with a form : Create a project named GuessANumber with a Form that contains a guessing game with five RadioButtons numbered 1 through 5. Randomly choose one of the RadioButtons as the winning button.
Operating characteristics of the five basic modes : Compare and contrast the operating characteristics of the five basic modes of transportation. Define the roles and responsibilities of the participants or parties of the transportation system. Describe the principles of economies of distance, weight,..
Prepare a partial balance sheet : The United States court system consists of state and federal courts. Before a court can entertain a case, it must determine whether or not it has the authority (jurisdiction) to do so. Subject matter jurisdiction limits the type of case a particular ..
To overcome obstacles business or personal : To overcome obstacles business or personal, you must master the three obstacles above. What are your ideas?
What role did american communists play in the labor movement : What role did American communists play in the labor movement during the Depression? What were the Unemployed Councils?

Reviews

inf1292298

11/28/2016 7:07:10 AM

Thank you for your assistance. The paper is delightfully prepared and greatly coherent. It is accurate and addresses all the critical requirements that I trust I will be inquired. It is additionally solved on a level of factual and exploration investigation that I can get it. Your work is very useful. Thanks again.

len1292298

11/27/2016 11:55:38 PM

I am taking C# class.NOT C++. Ihave had no credit for past three assignments. C# and Vision Studio or express GUI. Thank you very much. Farrell, Joyce. Microsoft Visual C# 2012: An Introduction to Object-Oriented Programming, 5th Edition. Cengage Learning, 20130304. VitalBook file.

Write a Review

Programming Languages Questions & Answers

  Create ajax-based product catalog

Create an AJAX-based product catalog which obtains its data from JSON files located on the server. The data should be separated into four JSON files.

  Write a program to prints the sum of all elements with an

write a program to prints the sum of all elements with an even index and all elements with an odd index of the

  Describe create table command

Find the patients who have made an appointment with a doctor who does not treat them.

  Write the output from your instrument class methods

Write the output from your Instrument class methods to a text file that a user entered from the command line arguments (e.g. java violinOutput.txt). This allows your program to accept filenames from the user via a command line argument.

  Write statement essential to call compute interest method

Write statement essential to call the calculate interest method with an account balance of $2300.00 and an interest rate of 5%. What rule must be adhered to when calling a method with multiple parameters?

  Allow customers the option of five t-shirt sizes

Allow customers the option of five T-shirt sizes and styles: XXL Short Sleeve, XL Short Sleeve, L Short Sleeve, M Short Sleeve, S Short Sleeve. Assume that each product has a unique price that is displayed when the user cliks a Buy Now button.

  Compute the estimated direction of current motion

This is your template code for a simple maze "game". The player's task is to drag an arrow through the maze from the red starting dot to touch the Blue middle square without touching the black maze walls on the way. compute the estimated direction ..

  How to make game in pascal programming lanuage

How to make game in pascal programming lanuage

  Create the structure with 3 members and fill in data

Create a function that will display() all the data for each member and call it from the main program.

  Create memo to grace to outline purposes of organization

Create a memo to Grace in which you outline purposes of organization and costs and benefits of becoming a member.

  Write a program which reads a string as an input

Write a program which reads a string as an input then it counts number of occurrences for each letter, and then displays the letters which occurred 3 times or more.

  Calculating the center of mass of red markers

In the video clip, the monkey is moving. Firstly, red markers create on head, body, hands and feet of monkey. And then track the monkeys' movement with calculating the center of mass of red markers

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd