
Create and run your first Windows Forms app in Visual Studio using the .NET Framework, and explore Solution Explorer and project files to understand the workflow.
Explore the partial keyword in Windows Forms, showing how a single class spans multiple files with the same namespace, and how the designer file relates to Form1.
Explore how references and assemblies organize namespaces and classes in Windows Forms, view the object browser details, and manage using directives and references to keep code functional.
Explore using int variables in a Windows Forms project by reading and assigning form width and height, displaying results in a label, and understanding get and set properties.
Master building strings from variables using concatenation, display formatted values in a label, and apply currency formatting to a price variable within a Windows Forms project.
Learn to read text from a Windows Forms text box in C# and apply string methods like trim, toUpper, and toLower. See that these return copies and report length.
Explore how to extend the MessageBox.Show method using enumerations like MessageBoxButtons and MessageBoxIcon, selecting OK Cancel and information icons. Learn to handle format errors with try-catch and the System.FormatException.
Learn how to identify and handle exceptions in C# with Windows Forms by using try-catch blocks, inspecting messages and stack traces, and handling format exceptions with user feedback.
Explore how scope determines where a label or button is accessible, contrasting class-level fields with method-local variables and watching memory behavior during debugging.
Learn if/else if/else logic in a Windows Forms app by using a combo box to select C++, Java, or C-Sharp and display the corresponding rate per hour.
Explore how to use the ternary operator in a C# Windows Forms project to evaluate true or false conditions, assign results, and display outcomes with message boxes.
Learn how to extend a Windows Forms app with two text boxes to search strings using the ternary operator and the contains method, demonstrating substring matching.
Learn how modern C# switch blocks handle decimal input, using case with logical conditions to assign tax rates (10%, 15%, 20%), with break, scope, and to prevent fall-through.
Explore how to handle multiple exceptions in C# using try-catch blocks, including argument, format, and overflow exceptions, and observe how specific inputs trigger precise error messages.
Learn to use DateTime.TryParse to convert textbox input into a date time with an out parameter, handling success or failure and displaying a short date string.
Explore how the date time try parse method uses an out parameter to set a result and returns a boolean indicating success, with internal and public variants.
Learn to change variables with compound operations using a numeric up-down control in windows forms, and mirror the result on a label while respecting min and max values.
Learn to implement a while loop in a Windows Forms app to generate and display a list from 1 to 5 using a loop counter, x++, and string interpolation.
Build a Windows Forms app with a data grid view and a button, add a salary column, customize fonts and column widths, and set up input validation to prevent crashes.
practice while loops to sum numeric values from a data grid view, using try parse to convert strings to decimal, ignoring non-numeric input, and initialize sum to zero.
Learn to extract grid view values in a C# Windows Forms app by accessing rows and cells with zero-based indices, and copy to a label, or export to Excel.
Load an image list and navigate with a forward button, using pre-incremented image index while guarding against out-of-range errors and edge cases at end of list.
Demonstrate backward navigation for an image list in a picture box by using image index, loading images, and guarding against negative indices to prevent crashes.
Position the image within the margins by subtracting its height (256) from the bottom limit (1000) using the margin bounds, with x and y set by numeric updown controls.
Implement a robust print preview workflow in a C# Windows Forms image browser, wiring a print preview dialog to a print document and guarding image list checks to prevent crashes.
Adjust image placement by constraining coordinates to fit within page margins, snapping to the last valid position when overflow occurs, and testing with print preview.
Learn to resize images dynamically in a Windows Forms image browser using a track bar, update print preview, and manage scrolling with a picture box and bitmap scaling.
Make sure as you make the project, the Document Layout window shows the Cylinder Panel above the Rectangle Panel.
Look at the attached picture to see this.
This is also explained in video 79.
Create a Windows Forms project, add a notes form, and design an interface with a rich text box, save and load buttons, using the anchor property to fill the form.
Build a rectangle panel layout by adding and nesting panels, a picture box with the rectangle image, text boxes for horizontal and vertical dimensions, and area and perimeter labels.
Implement a tooltip on a Windows Forms panel in C#, using the mouse hover event to show 'click to copy to clipboard'.
Improve a C# Windows Forms project by wiring a numeric up-down to area and perimeter calculations, converting to integer, applying rounding, and validating non-numeric or zero/negative input.
Add a button to a windows forms app, configure its text, open a notes panel, tie it to a notes class, and enable save, load, and rich text handling.
Lock and unlock controls to copy the cylinder interface, then place the copy on the form. Rename elements and configure height, radius, and the volume button.
Learn to switch between panels in a C# Windows Forms app using a combo box, with items for rectangle and cylinder and a SelectedIndexChanged switch.
Make sure you set the print document on the printDialog1 object to printDocument1 in the properties panel of the printDialog1 object.
Add printing font objects to the bottom of the form, including color dialog, print preview dialog, print document, print dialog, and font dialog, aligning them within the tab control hierarchy.
Explore discrete compounding in a c# windows forms project, converting percentages to decimals, applying the formula with principal, rate, and periods, and displaying results as currency.
Explore how to implement print preview, print dialog, and color dialog in a C# Windows Forms project by wiring print documents, showing dialogs, and configuring font and color options.
Print text box contents in a Windows Forms C# project by composing a string with interpolation for principal, rate, time, and compounding periods, then render with graphics.drawstring and print preview.
Learn to arrange four picture boxes and text boxes in a table layout panel, dock them to fill cells, adjust font size, borders, copy and paste controls, and preview interface.
Add and configure dialog controls in a Windows Forms project, including open file, print, print preview, and print document dialogs; set image boxes to zoom and check the document outline.
Print from a Windows Forms app by converting a layout panel to a bitmap, drawing it with graphics, and printing to files or printers via a dialog and document.
Add a user interface that downloads pictures from the web by placing a uri text box, configuring a download button, and incorporating a save file dialog.
links to sites used are under lesson resources
Configure Gmail to accept smtp communications by enabling email attachments in a windows forms app, updating download button and e-mail text box, and enabling less secure app access for testing.
Learn to extend a WinForms open file dialog by adjusting the filter to show text files and rich text format files, clear the file name, and merge them.
Add a save file interface to store box contents, rename the load files button to save file, and configure a save file dialog with text and rich text filters.
Demonstrates saving files in a Windows Forms app using a save file dialog, including text and rich text formats, and saving text box content to disk.
Configure Visual Studio to install SQL Server data tools and localdb for a local database. Create a Windows Forms project and access the localdb via SQL Server Objects Explorer.
Add a database and create a table for business contacts. Define an identity primary key with auto increment, a date time column, and var char fields like company and notes.
Learn to load an image into a picture box, double click to open a new form, and display an enlarged version with size mode zoom and dock fill.
Add a delete query to remove records using a data grid view and the business contacts table adapter, with a parameter for the record ID, and refresh the data set.
Learn to load images into a data grid view and persist them as byte arrays in a database using an open file dialog and bytes conversion.
Add an insert query in a Windows Forms C# app to insert values from text boxes into the database table using a data adapter, and understand insert vs fill.
Test insertion code in a Windows Forms app by adding records, refreshing the bottom table view, and validating image handling and automatic UI updates via the table adapter.
Add a like-based search across string columns to match the term anywhere. Implement as a table adapter query with a data set and data table, and bind to search box.
Clear all boxes by iterating through the form's controls collection, identifying text boxes and rich text boxes, and setting their text to empty; reset the date time picture to today.
Guard a Windows Forms data grid view image column from non-image files by validating with image.from_file in a try block and display a not valid image file message.
Implement a date-based search in a Windows Forms data grid view by double-clicking the date column header to show a date picker popup and filter records by the chosen date.
Export data from a WinForms app to Excel using interop by creating Excel application, writing headers and grid data from a DataGridView into workbook worksheet, with save dialog.
Learn to reattach a detached database by updating a table, setting identity_cache off, and upgrading LocalDB, using MDF and LDF files in SQL Server with Visual Studio.
Learn to export data grid headers and cells from a Windows Forms app to text file in C# using a stream writer and a save file dialog, with comma-separated values.
Export the selected rows from a Windows Forms DataGridView to Excel. Reuse and adapt existing export code to output the chosen rows, preserving headers and column structure.
Export data from a data grid view to a Word table in a C# Windows Forms project, copying headers and cells into Word, with save-as dialog and error handling.
Update 7/21/2023: Added an article lesson with a zip showing how to make a simple platformer game using Windows Forms and C#.
Update 7/20/2023: Some Unity Scripts are also now added . These are good for beginning learners. They are all heavily commented so it's very important to read all the comments to understand what the code is doing. They're on the bottom in article form.
Update 7/19/202023: Added on bottom a zipped up C# project that amounts to a customer calendar generator. I haven't made videos on this yet, as I lack the time.
Dynamic calendar generation based on selected months, days, and year.
Month and day selection using CheckedListBox controls.
Year selection using a NumericUpDown control.
Copying text from a top RichTextBox to all corresponding RichTextBoxes in the calendar.
Clearing text from all RichTextBoxes in the calendar.
Zoom control using a TrackBar to adjust the calendar size.
Font size adjustment using a separate TrackBar for the RichTextBoxes' font size.
Update 7/19/2023: Added on bottom a zipped up C# project that creates a draggable text box whose location and content are saved between form loads. It's a sticky note basically for Windows Forms. I have not yet made videos on this, as I lack the time but the code has a lot of rich comments.
Update 7/18/2023: On the bottom is a C# Game Project in a zipped up file. I HAVE NOT had the time to make videos of this project. The GameForm project has been meticulously documented with detailed comments to help learners understand the purpose and functionality of each line of code. Here's an overview of how the lines of code are heavily commented. You play a character that has to avoid three little monster moving around on the screen. It's about 260 lines of code.
Dear aspiring coders,
Are you ready to unlock the power of C# programming and take your skills to the next level? Look no further than our comprehensive online course on Udemy!
Imagine immersing yourself in a course that not only covers the basics of C# and Windows Forms but also explores intricate details that require careful analysis. With a plethora of exercises placed throughout the videos, you'll be able to apply what you've learned and solidify your understanding of the material. And don't worry about getting stuck - we provide solutions to the exercises after the pauses, so you can test and check your work.
Our course uses the latest version of Visual Studio, with all the code typed line by line, in real time, inside the program. And while this is a beginner's course, we do not avoid very technical details. We discuss concepts related to object-oriented programming early on and provide closed-captions automatically for those who are hearing-impaired.
But that's not all! We are excited to announce that we have recently added four new sections dedicated to building practical projects, including a fairly extensive database project. This project explores the intricacies of database programming in C# and will challenge you to take your skills to the next level. And with our videos presented in HD quality with clear and crisp audio, you'll be able to follow along every step of the way.
Don't wait any longer to take advantage of this incredible opportunity. Act now and join us on this exciting journey into the world of programming. We encourage you to watch our free preview videos and review our course goals, so you can see exactly whether this course is the right fit for you.
You know that you have the potential to excel in programming, so why not give yourself the tools you need to succeed? Let us help you unlock your full potential and explore the exciting possibilities of C# programming together.
Thank you for considering our course, and we hope to see you soon!