Docsity

Counting Images Assignment: Creating a Picture Box Application in Visual Studio, Exercises of Business Management and Analysis

Toggle sidebar
bg1
IN CLASS ASSIGNMENT – COUNTING IMAGES
In Class Assignment 1 will be your first graded assignment. We will complete this assignment
together in class. These instructions will help guide you through completion of the In Class
Assignment.
1. Begin a new project and call it CountingImages. Rename the default form to frmMain.
Change the form’s Text property to read 1, 2, 3 Counting Images. These two steps should
always be performed immediately following the creation of a new form: change form’s
Name property & change form’s Text property.
2. Save your project to a location you can easily find. I suggest the Desktop. NEVER USE
SAVE AS… ALWAYS USE SAVE ALL!
3. Design the form so that it looks like the image below. All of these controls will be used in
code and need to be renamed. Controls should be named as follows: lblHeading, picNumber,
btnOne, btnTwo, and btnThree. Don’t forget to change the Text Properties accordingly. You
can make your life a lot easier by using the Align, Make Same Size, and Spacing features
under the Format menu of Visual Studios. When adding controls, remember that it is easiest
to create them Left to Right and Top to Bottom.
4.
Click the
“Save” button and save it to your desktop. Now go to your desktop, right click on the zipped
Docsity.com
pf3
pf4

Partial preview of the text

Download Counting Images Assignment: Creating a Picture Box Application in Visual Studio and more Exercises Business Management and Analysis in PDF only on Docsity!

IN CLASS ASSIGNMENT – COUNTING IMAGES

In Class Assignment 1 will be your first graded assignment. We will complete this assignment together in class. These instructions will help guide you through completion of the In Class Assignment.

  1. Begin a new project and call it CountingImages. Rename the default form to frmMain. Change the form’s Text property to read 1, 2, 3 Counting Images. These two steps should always be performed immediately following the creation of a new form: change form’s Name property & change form’s Text property.
  2. Save your project to a location you can easily find. I suggest the Desktop. NEVER USE SAVE AS… ALWAYS USE SAVE ALL!
  3. Design the form so that it looks like the image below. All of these controls will be used in code and need to be renamed. Controls should be named as follows: lblHeading, picNumber, btnOne, btnTwo, and btnThree. Don’t forget to change the Text Properties accordingly. You can make your life a lot easier by using the Align, Make Same Size, and Spacing features under the Format menu of Visual Studios. When adding controls, remember that it is easiest to create them Left to Right and Top to Bottom.

Click the “Save” button and save it to your desktop. Now go to your desktop, right click on the zipped

folder “inclass1.zip” and select Extract All. This will open the “Extraction Wizard”. Just click “Next”, “Next”, and “Finish”. This will open the folder on your desktop where your files were extracted to. You should see the files that are going to be used in this project ( one.png, two.png, three.png, and zero.png ).

To use these images, go ahead and drag and drop a “PictureBox” from the Toolbox on the left. Set the “Size Mode” to AutoSize, and click “Choose Image…”. Make sure that “Project resource file” is selected and click the Import button. Browse to the folder on your desktop where you saved and extracted the files, it will be the folder inclass1. Select all of the images in the folder and click the “Open” button. Now you should see the following image. Make sure that zero is selected and click the “OK” button.

  1. In your “Solution Explorer”, you will notice that a new folder has been added named “Resources” with all of your image files.
  1. Locate In Class Assignment 1 in the list of assignments and click Upload Now in that row. 17. Browse to the location the ZIP file you just created ( CountingNumbers.zip ) is located and select it to upload.
  2. Submit this file to complete In Class Assignment 1. Entropy will display an Upload ID and you can verify this upload. Remember, I only get the most recent submission so you can submit multiple times and I will only see the final submission.