Description
📥 Get the project, database scripts, and supporting resources:
👉 https://www.patreon.com/iBasskung/posts/c-net-10-app-171463553
แสดง App Version ในเมนู About ด้วย C# .NET 10 WinForms | Visual Studio 2026
C# .NET 10 WinForms Tutorial: Display App Version in About Menu | Visual Studio 2026
Learn how to display application version information in the About menu of a C# Windows Forms business application using Visual Studio 2026 and .NET 10.
In this tutorial, you'll learn how to handle menu and toolbar click events, display application information using MessageBox, and replace hardcoded version numbers with a centralized version setting in the SDK-style project file. You'll also explore Semantic Versioning (SemVer), stable releases, and pre-release versions such as beta.
🎯 What You'll Learn
- Handle Click events for the Exit Application menu item and toolbar button
- Use `Application.Exit()` to close the application
- Explore the About dialog in Visual Studio 2026
- Display application version information using `MessageBox.Show()`
- Understand hardcoded version numbers and their limitations
- Configure the application version using the `Version` property in the `.csproj` file
- Retrieve the product version using `Application.ProductVersion`
- Use `Split('+')[0]` to exclude build metadata following a plus sign
- Understand Semantic Versioning (SemVer): Major, Minor, and Patch
- Distinguish stable releases from pre-release versions such as alpha and beta
- Apply the Single Source of Truth (SSOT) principle to application versioning
- Compare `Application.ProductVersion` with `Assembly.GetName().Version`
📌 Lesson Goal
Learn how to display application version information and manage version numbers centrally through the project configuration, reducing hardcoded values and making version updates easier to maintain across a business application.
This tutorial is suitable for beginners learning C# and developers who want to build maintainable Windows desktop applications with Modern .NET.
🚀 Build a Business Application Step by Step
This lesson is part of the course Build a Business Application with C# and SQL Server using Visual Studio 2026 and Modern .NET.
Follow along to develop a business application step by step, from Windows Forms UI design and project configuration to database integration and business functionality.
Subscribe to iBasskung for more C#, .NET, SQL Server, WinForms, and enterprise application development tutorials.
📦 Want the Complete Project and Learning Resources?
The Business Application course and project package includes source code, three E-Books, and SQL scripts for learning and further development.
Contact iBasskung for more information.
#CSharp #DotNet10 #WinForms #VisualStudio2026 #SQLServer #ModernDotNet #SemanticVersioning #CSharpTutorial #BusinessApplication #iBasskungAI