Programming for Beginners in C# Windows Forms
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.
40 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Programming for Beginners in C# Windows Forms to your Wishlist.

Add to Wishlist

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.
40 students enrolled
Created by Ionescu Doru
Last updated 6/2016
English
Current price: $10 Original price: $20 Discount: 50% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 8 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • 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
View Curriculum
Requirements
  • Complete Beginners
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.

Who is the target audience?
  • Understand the foundations of the C# Programming language
  • Learn tips and tricks to make smart applications with ease
Students Who Viewed This Course Also Viewed
Curriculum For This Course
42 Lectures
07:53:24
+
Introduction
4 Lectures 07:22

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

Preview 01:50

  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
Preview 02:19

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

Preview 01:53

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

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;
Project 1: Simple paint with mouse events
06:34

  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;
Preview 13:14

  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;
Project 3: Third application with mouse events part 1
14:29

  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;
Project 3: Third application with mouse events part 2
09:48

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.
Project 4: Simple application with keyboard controls
04:51

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;
Project 5: Bonus - Make a piano application using keyboard/mouse events
19:12

  1. Create a Click Mouse Event assigned by the names;
  2. Create an automatic thread;
Project 5: Bonus - Make a piano application using keyboard/mouse events part 2
15:45
+
Exceptions Handling(try,catch,finally)
6 Lectures 01:04:44

1. Working with menus;

2. Manage the exceptions;

3. try, catch, finally blocks.

Theory - Exceptions Handling
04:10

  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.
Project 6: Exception Handling 1 part 1
19:02

  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.
Project 6: Exception Handling 1 part 2
02:38

  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.
Project 7: Exception Handling 2 part 1
17:17

  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.
Project 7: Exception Handling 2 part 2
08:10

  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.
Project 8: Bonus - calculate interest rate
13:27
+
Xml, Files
10 Lectures 02:06:08

1. Working with text files;

2. Serialization / Deserialization;

3. Working with XML Files.

Theory - Files and XML Files
05:58

  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;
Project 9: Add, View, Delete Student from File Part 1
18:21

Set the itemActivate, itemChecked and run the program.

Project 9: Add, View, Delete Student from File Part 2
04:12

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

Project 10: Add & Modify Rows in a Listview and Save the fields to a file
17:53

  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;
Project 11: Application XML basics project
12:28

  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.
Project 11: Working with XML Files Part 2
09:53

  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;
Project 12: Load, Read, Save Student in XML File Application
15:36

  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.
Project 13: Parse, Generate, View, Save & Open Xml File App Part 1
16:15

Save and Open the XML file.

Project 13: Parse, Generate, View, Save & Open Xml File App Part 2
05:53

  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.
Project 14: Bonus - slideshow images app
19:39
+
ListView, TreeView
13 Lectures 03:03:44

1. ListView controls;

2. TreeView controls.

Theory - Listview and Treeview
03:24

  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.
Project 15: Listview Controls part 1
19:29

  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.
Project 15: ListView Controls part 2
16:43

  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.
Project 16: Controls TreeView app
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. 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.
Project 17: Listview Insert Products
19:52

  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.
Project 18: ListView Insert Books Part 1
17:31

  1. Select the RadioButtons view;
  2. Save and open the file without serialization(with normal text, not encoded).
Project 18: ListView Insert Books Part 2
09:14

  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.

Project 19: Add & Remove & Visualize Records
19:43

  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.
Project 19: Insert Records ListView 3 Part 2
08:31

  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.
Project 20: Listview Show file types details Part 1
16:27

  1. Set the ComboBox selectIndexChanged;
  2. Add functionallity to the ListView click and double click;
  3. Create Files folder.
Project 20: Listview Show file types details Part 2
10:20

  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.
Project 21: Treeview Show file types details Part 1
16:06

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

Project 21: Treeview Show file types details Part 2
10:57
+
Few words as conclusion
1 Lecture 01:27

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

Conclusion
01:27
About the Instructor
Ionescu Doru
2.8 Average rating
2 Reviews
40 Students
1 Course
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.