EBK STARTING OUT WITH VISUAL C#
EBK STARTING OUT WITH VISUAL C#
5th Edition
ISBN: 9780135204818
Author: GADDIS
Publisher: VST
Question
Book Icon
Chapter 9, Problem 11PP
Program Plan Intro

Form design:

  • Open Microsoft Visual Studio 2010.
  • Select C# and click Windows Forms Application.
  • Name the project as WorldSeriesWinners.
  • Store the file in desire location.
  • The created project is now display with a form in the name of Form1.
  • Select the Form1 and add the necessary components.
  • In property window, change the Form name and add changes for Form elements properties.
  • Click the File menu->Save All.

View of the form design in the IDE:

EBK STARTING OUT WITH VISUAL C#, Chapter 9, Problem 11PP

The form control properties in the properties window are as follows:

ObjectPropertySetting
Form1TextWorld Series Winners
label1TextEnter a year(1903-2009)
yearTextBoxText(Empty)
getWinnerButtonTextGet Winner
label2TextWorld Series Winner
winnerLabelText(Empty)
label3TextNumber of Wins For that Team
numberWinsLabelText(Empty)
  • Add a label control to display “Enter a year(1903-2009)”.
  • Add a text button to get the year input from the user.
  • Add a button control “Get Winner” to know the winner name.
  • The output will be displayed in winnerLabel and the number of wins is shown in numberWinsLabel.

Blurred answer

Chapter 9 Solutions

EBK STARTING OUT WITH VISUAL C#

Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education