
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.
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.
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 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.
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.
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.
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.
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.
Make sure you set the print document on the printDialog1 object to printDocument1 in the properties panel of the printDialog1 object.
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.
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.
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.
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.
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.
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.
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!