Programming for Beginners in C# Windows Forms

Learning to code C#? We have 21 applications to learn on!
2.8 (2 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
16 students enrolled
$19
$20
5% off
Take This Course
  • Lectures 42
  • Length 8 hours
  • Skill Level Beginner Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 3/2016 English

Course Description

Have you ever wanted to learn to code but don’t know where to start?This course starts you with basic coding language of C#.

During this course you will learn Windows Forms C# concepts which are relevant to your programming knowledge:

  • Create mouse and keyboard applications and a bonus application building a piano that play songs automatically;
  • Create ways to treat errors without crush into the middle of the application;
  • Create, Add, Modify, Remove, Save, Open, Encode, Decode Files;
  • Understand the file formats and how to work with processes to open different programs inside a ListView / TreeView;
  • Create ListView / TreeView applications that are easy to understand, destined for beginners;
  • Bonus applications where you will discover how simple is to transform ideas into practical applications using the great language C#.

At the end of the course you will be able to write beautiful code with little effort.

What are the requirements?

  • Complete Beginners

What am I going to get from this course?

  • Learn how to create Graphical User Interface Elements
  • Learn how to treat errors with try, catch and finally blocks
  • Learn how to Add, Modify, Remove, Save & Open File from ListView
  • Learn how to work with eXtensible Markup Language(XML) and text Files

What is the target audience?

  • Understand the foundations of the C# Programming language
  • Learn tips and tricks to make smart applications with ease

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Introduction
01:50

Few words to describe what we want to do in this course.

02:19
  1. Go to visualstudio.com
  2. Click the "Download Visual Studio Community 2015" link
  3. Run the installer
  4. Optionally sign into Visual Studio with your Microsoft Account
01:53

Print a message to the screen "Hello World!".

01:20
  1. Number lines activate when appear errors;
  2. Few tips about the environnement.
Section 2: The management of events (Mouse & Keyboard) - Getting started
06:06
  1. Mouse Events;
  2. Events generated by keyboard;
  3. Creating Graphics Object for Drawing;
  4. Graphical User Interfaces (GUI);
  5. Visual Programming.
06:34

Simple mouse events:

  1. Mouse Down occurs when mouse click is pressed inside the form;
  2. Mouse Up occurs all the time because we have the cursor of the mouse above of the form;
  3. Mouse Move occurs when you press the left mouse click alongside with the color and coordinates;
13:14
  1. Mouse Down occurs when mouse click is pressed inside the form;
  2. Mouse Up occurs all the time because we have the cursor of the mouse above of the form;
  3. Mouse Move occurs when you press the left mouse click alongside with the color and coordinates;
  4. Change ForeColor of the control that draw the lines;
  5. Change Thickness of the pen that we are drawing the lines;
  6. Save the Form as an image with all the controls and drawings with the specified type of extension;
14:29
  1. Mouse Enter occurs when mouse enter the control space;
  2. Mouse Leave occurs when mouse leaves the control;
  3. Mouse Click occurs when the control is clicked by the mouse;
09:48
  1. Mouse Hover occurs when the mouse pointer rests on the control;
  2. Mouse Wheel occurs when the mouse wheel moves while the control has focus;
  3. Label Hover change color and mouse pointer;
04:51

Simple keyboard events:

  1. KeyDown event determine the type of character entered into the control;
  2. KeyUp event occurs when a key is released while the control has focus;
  3. KeyPress event occurs when a character. space or backspace key is pressed while the control has focus.
19:12

Keyboard events:

  1. KeyDown event to escape the application using keycode Escape;
  2. KeyPress event use when we want to press the buttons on the keyboard;
15:45
  1. Create a Click Mouse Event assigned by the names;
  2. Create an automatic thread;
Section 3: Exceptions Handling(try,catch,finally)
04:10

1. Working with menus;

2. Manage the exceptions;

3. try, catch, finally blocks.

19:02
  1. Gather all the controls that we need to the form;
  2. Create a Student class with a default constructor, a constructor with parameters and set the properties for each of the variables declared.
02:38
  1. Using an errorProvider control to set the errors if we met some conditions;
  2. On the "try block" - gather all the data of the Student and set them as valid inputs and if all inputs have been completed correctly print a message to the screen with MyException function;
  3. On the "catch block" - handle all exceptions that appear and resolve them with an message print to the screen;
  4. On the "finally block" - clears the errorProviders.
17:17
  1. Gather all the controls that we need to the form;
  2. Create a Credit class with a default constructor(automatically build by compiler), set the properties and return a message with the properties of the variables created.
08:10
  1. Using an errorProvider control to set the errors if we met some conditions;
  2. On the "try block" - gather all the data of the Credit class and set them as valid inputs and if all inputs have been completed correctly print a message to the screen with the ToString() method from the Credit class;
  3. On the "catch block" - handle all exceptions that appear and resolve them with an message print to the screen;
  4. On the "finally block" - clears the errorProviders.
  5. Create few menustrip controls and verify if a checkbox or radiobutton was pressed and show a message.
13:27
  1. Gather all the controls that we need to the form;
  2. Create a Credit Schema class with a constructor with parameters and set the properties for each of the variables declared.
  3. Create a Refund method;
  4. Initialize the ComboBox and add records inside it;
  5. Handle the exceptions and treat them inside a button.
Section 4: Xml, Files
05:58

1. Working with text files;

2. Serialization / Deserialization;

3. Working with XML Files.

18:21
  1. Gather all the controls that we need to the form;
  2. Create a Student class that contains a costructor with 3 parameters and set the properties for the variables;
  3. We populate the listview with fields;
  4. Add a student to the listview within our form;
  5. Delete student when we check a row;
  6. Save the file and serialize the data within the file;
  7. Restore the last saved file and deserialize the content to normal text;
04:12

Set the itemActivate, itemChecked and run the program.

17:53

Add, Modify, Remove, Save & Open file from listview.

12:28
  1. Gather all the controls that we need to the form;
  2. Create a Student class that contains a costructor with 2 parameters and set the properties for the variables;
  3. Add student to the XML file by saving them in specified file;
  4. Show the fields from XML file within the ListView;
09:53
  1. Create a node inside a Xml File;
  2. Display the content from an Xml File inside the ListView;
  3. Add a different node to the Xml File.
15:36
  1. Gather all the controls that we need to the form;
  2. Load from XML file the specified fields into the listbox on the form;
  3. Read the XML file as we created and show it on the textbox on the form;
  4. Save the XML file with a new name and character entity reference with it's content inside;
16:15
  1. Gather all the controls that we need to the form;
  2. Parse the XML file and show the string in the textbox input;
  3. Generate the XML file as a template;
  4. View the content of the XML file within the textbox from the form.
05:53

Save and Open the XML file.

19:39
  1. Gather all the controls that we need to the form;
  2. Create a vector with images files and dimensions;
  3. Make a function when is clicked on an image to be displayed inside the form;
  4. Make an automated slideshow and establish the order and time;
  5. Resize images.
Section 5: ListView, TreeView
03:24

1. ListView controls;

2. TreeView controls.

19:29
  1. Gather all the controls that we need to the form;
  2. Create a ClassProduct class and a ColHeader class that contains a costructor with 4 parameters and also a SortWrapper class where we want to sort and compare objects;
  3. Fill the listview with a list of products;
  4. Use a interface IComparer with CompareTo() method of 2 objects and sort the items from the listview.
  5. Initialize and generate the ListView.
16:43
  1. Click on the column header to sort the items;
  2. Display the icons from the listview in different formats and select a category from the list.
15:27
  1. Gather all the controls that we need to the form;
  2. Create a Product class that contains a costructor with 4 parameters;
  3. Fill the treeview with a list of products and show the content in a textbox;
  4. Delete the selected node from the treeview;
  5. Refresh the list of products and show the exact list from the begining.
19:52
  1. Gather all the controls that we need to the form;
  2. Create a Product class that contains a costructor with 4 parameters;
  3. Add values to the listview and load them into it;
  4. Make a function that insert new data to the listview from antoher form;
  5. In the second form we gather all the controls to the form and validate the input data and sent them to the first form in the listview.
17:31
  1. Gather all the controls that we need to the form;
  2. Create a Books class that contains a costructor with 7 parameters;
  3. Create a new form Add Books where we treat errors and take the input data and send it to the main form.
09:14
  1. Select the RadioButtons view;
  2. Save and open the file without serialization(with normal text, not encoded).
19:43
  1. Gather all the controls that we need to the form;
  2. Create a Person class that contains a costructor with 7 parameters and set the properties for the variables;
  3. Check if all the controls are checked.

08:31
  1. Add the records to the ListView;
  2. By selecting the row we remove it from the listview by pressing a button;
  3. If we select a row, we change the color.
16:27
  1. Gather all the controls that we need to the form;
  2. Search for directory inside our computer, choose a directory and display all the files from the specified folder;
  3. Display the files in different formats within the listview.
10:20
  1. Set the ComboBox selectIndexChanged;
  2. Add functionallity to the ListView click and double click;
  3. Create Files folder.
16:06
  1. Gather all the controls that we need to the form;
  2. Search for directory inside our computer, choose a directory and display all the files from the specified folder;
  3. Display the directory structure with all the folder from the chosen disk on the treeview;
  4. Display the files from the selected folder in different formats within the listview.
10:57

Add functionallity to the treeview after select and ListView double click.

Section 6: Few words as conclusion
01:27

Final words for programmers that want to make inspirational stuff and build whatever they have in mind.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Ionescu Doru, C# Developer

Hi! My name is Doru Ionescu. I have a degree in Cybernetics Statistics and Economic Informatics from Bucharest Academy of Economic Studies, Romania.

I am working as a C# Developer since the beginning of 2015 and i was previously working as a Web Developer since 2010.

I just think C# and Visual Studio is a huge force in the industry that is often ignored.

When choosing what to focus on, it can be tempting to simply look at the technologies that yield the most jobs and focus on those.

More important than portraying the perception of being suitably motivated and engaged by your field is that exposure to these fringe technologies and methodologies actually makes you deeper, better, smarter, and more creative.

C# syntax is highly expressive, yet it is also simple and easy to learn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java.

Developers who know any of these languages are typically able to begin to work productively in C# within a very short time.

Ready to start learning?
Take This Course