Pearson eText for Starting out with Visual C# -- Instant Access (Pearson+)
Pearson eText for Starting out with Visual C# -- Instant Access (Pearson+)
5th Edition
ISBN: 9780137502783
Author: Tony Gaddis
Publisher: PEARSON+
Question
Book Icon
Chapter 13, Problem 2PP
Program Plan Intro

Form design:

  • Open Microsoft Visual Studio 2010.
  • Select C# and click Windows Forms Application.
  • Name the project as PrimeNumbersGeneration.
  • 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:

Pearson eText for Starting out with Visual C# -- Instant Access (Pearson+), Chapter 13, Problem 2PP

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

ObjectPropertySetting
Form1TextPrime Numbers
inputTextBoxText(Empty)
getPrimesButtonTextGet Primes Up To This Number
resultsListBoxItems(Empty)
closeButtonText (Empty)
  • Add the text control to enter the input.
  • Add a button control to execute the program to find the prime number up to given limit.
  • Add a list control to show the output.
  • Add a button control “closeButton” to close the function.

Blurred answer
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