Module 1: Course Project – Create A Windows Form Application With Basic Controls

Background

Don't use plagiarized sources. Get Your Custom Essay on
Module 1: Course Project – Create A Windows Form Application With Basic Controls
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT!
Order Essay

This course project is designed to help you practice using your skills. Each week, you will learn important concepts. Then, you will apply these concepts to build an amazing course project over the next seven weeks. What’s more, this project will have a Graphical User Interface (GUI) instead of using the console. This course project has two parts. For the first couple of weeks, you will be create a basic GUI and learn how to work with GUI controls while practicing basic programming concepts. After that, you will create an object oriented project.

Part 1: Scenario

Lucky you! Your manager has put you in charge of the lyrics videos for the monthly lip synch contest. Each contestant “sings” along with a song of their choice, prompted by the lyrics in the video. Essentially, there is a long list of songs, along with associated URLs and other information. Your manager has some basic functionality in mind, such as the ability to add and remove songs, as well as create playlists and show the videos. The application must run fast, and be updated with new features over time. Maintenance is key!

NOTE: For this project, we strongly suggest keeping a Notepad or MS Word document handy, containing the names of a few songs and associated video URLs. The URLs can be local video files on your hard drive, or videos on web-based sites such as YouTube.com.

Week 1: Create a Windows forms application with basic controls

Objectives

1. To start the course project

2. Design and create two Windows forms with GUI controls

3. Read from and update GUI control variables

Introduction

Steps

1. Download and install Visual Studio Community edition: https://visualstudio.microsoft.com/vs/community/

2. Start Visual Studio and click on Create a New Project.

3. Create a new C#.net Windows Forms App and call it “lastname_CourseProject_part1”. Make sure that your project location is set to somewhere where you will find it easily!

Note: If you do not see Windows Forms App (.NET Framework), scroll down and click on “Install more tools and features”

Ensure that the following workloads are installed:

Once they are installed launch Visual Studio. Create a new C# Windows Forms App and name it lastname_CourseProject_part1 and replace lastname with your last name then click Create.

4. Make a new form. You are now ready to start designing your form! You should be presented with a blank form like the one below. Currently it is called Form1, which is both boring and poor programming practice. A form, as well as forms controls, should have meaningful names, just like all other variables.

Follow the videos below. The first is a walkthrough of the Form Designer environment and a little tutorial showing you how to adjust the properties of your form. The second demonstrates how to add controls to this form and adjust their properties (including their variable names). You will create 5 labels with the Text property as the following “Title”, “Artist”, “Genre”, “Year”, and “URL”. Then you will create 6 textboxes. The first five should line up with the labels and should have the following names “titleText”, “artistText”, “genreText”, “yearText”, “urlText”. The 6th text box should be named outputText and set the multiline property to true. That text box will be a large rectangle to the side. In addition, a button control should be placed below the labels and textboxes. The text property should be “Add Song” and the button named AddButton.

 

The final result should look like this.

If you hit the green Start arrow, you will see something like this. Look, your programming is running! Congratulations, you have created your first form! Click on the little red square to stop the program execution and go back to the editor.

5. Reading text from text boxes and displaying it. Now it’s time to make the form actually do something. The goal is for the user to type in a song title, artist, genre, year, and URL, and then click “Add Song.” To do this, you have to add an event listener for the “Add Song” button, called “AddButton_Click.” This event listener will take text that the user typed into the textboxes on the left-hand side of your form, connect it all into one long string, and put that string into the outputText textbox.

The code for the AddButton_Click event handler (as shown in the video) is included in the screenshot below.

Your final result will look something like this!

Deliverables Week 1

· Use the Word document template and put your information at the top, including your name, course number, and current date. Take a screenshot while your application is running. Paste the screenshot to a Word document below your information. Finally, copy-paste your Form code (only the code for the form, not program.cs) to the Word document below the screenshot. Save and close your Word document. Submit the Word document for your first Course Project deliverable.

Calculate your paper price
Pages (550 words)
Approximate price: -

Why Choose Us

Top quality papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional academic writers

We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.

Free revisions

If you feel that we missed something, send the order for a free revision. You will have 10 days to send the order for revision after you receive the final paper. You can either do it on your own after signing in to your personal account or by contacting our support.

On-time delivery

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & confidential

We use several checkers to make sure that all papers you receive are plagiarism-free. Our editors carefully go through all in-text citations. We also promise full confidentiality in all our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

You are welcome to choose your academic level and the type of your paper. Our academic experts will gladly help you with essays, case studies, research papers and other assignments.

Admissions

Admission help & business writing

You can be positive that we will be here 24/7 to help you get accepted to the Master’s program at the TOP-universities or help you get a well-paid position.

Reviews

Editing your paper

Our academic writers and editors will help you submit a well-structured and organized paper just on time. We will ensure that your final paper is of the highest quality and absolutely free of mistakes.

Reviews

Revising your paper

Our academic writers and editors will help you with unlimited number of revisions in case you need any customization of your academic papers