Winform Development Books

The best book on winform

WindowsForms Programming.

1. First of all, this book provides a comprehensive and in-depth explanation of WinForms. The first half discusses relatively common technologies such as forms, dialog boxes, GDI+, and printing; the second half focuses on advanced topics covering design period integration, resources, applications and settings, multithreaded user interfaces, and Web deployment.

2, followed by Chapters 12 and 13 dedicated to the combined use of and WinForms. The appendices cover moving from MFC to WinForms, delegates and events, serialization, and standard WinForms components and controls, respectively.

3. Finally, this book is suitable for WinForms learners with background knowledge of .NET, while experienced WinForms programmers can learn a great deal of advanced techniques from it.

A few recommended books to learn C#

1. “C# 5.0 inaNutshell”:The definitive reference

One of the best books to learn C#. If you want up-to-date information to grow your knowledge about programming in the C# language, this is one of the best choices. The book discusses in-depth knowledge about the C# language. However, to be able to fully absorb and digest it, you need to have some basic knowledge about the C language. All in all, this book will definitely benefit you a lot.

The book starts with a brief background on C# development, and then jumps right into the fundamentals of data types. It then covers the informational aspects of programming in a systematic way. You can also practice the code samples written above, which can be downloaded for free from the Internet into LINQPAD.

2. HeadFirst C#

The best way to learn a new programming language is to study its various examples. This book provides just that with many hands-on projects for the reader to work on. These projects are not only easy to remember and participate in, they are also easy to extend. As an example, the project on cellular management systems provides code on improvements in interfaces and inheritance that can save you from repetitive work.

The index is also very well written, and because it includes relevant concepts, it helps you find what you need easily.

3. ProC#5.0andthe.NET4.5Framework (The Professional Voice of .NET)

This book is one of the best resources on the market for learning the C# language, not only is it written in an easy-to-understand style, but the examples given are completely error-free. However, if you don’t have any or only limited programming experience, then this book is not for you. Assuming that this is the case, then you need to read other books first. However, if you have a lot of experience then this will be the best resource for you.

The author makes good use of the throwaway method to initiate each topic and provides the corresponding shorthand grammar at the end. It is in this way that the book gives generalized information about this programming language and there are plenty of examples throughout the book.

4. “C#inDepth, Third Edition”

This book is written primarily for developers who already have some experience in C# programming. Compared to other programming manuals, the structure of this book is simple but innovative. Chapter 1 starts with the basics of the C# language, referencing the C#1 version. Chapter 2 mentions the changes in C# version 2. Chapter 3 then covers the changes made in C# version 3. And so on. In this way, the reader is made to understand the evolution of this programming language.

5. Programming C# 5.0: Support for Building Win8, Web, and Desktop Applications Using the .NET 4.5 Framework

This is one of the best books that tends to favor the interests of C# developers. The book is well written with very pragmatic programming knowledge. The target audience is programmers who are experienced but still new to .NET and C# programming.

This is a detailed, insightful and yet meticulous book on programming. The author explains each concept very clearly, along with relevant examples of the particular concept. It can be considered as a comprehensive and detailed information for those developers who are working with this language. Since it covers most of the scope of this programming language, it is especially suitable for those who are serious developers.

6. AdaptiveCodevia C#: Design Patterns and SOLID Principles for Agile Coding (Developer’s Reference)

This book is aimed at programmers who already have basic skills in this language. It will show you how to use the tools in the right way, as well as guide you step by step to discover the logical sequence behind them. According to many readers’ feedback, even skillful programmers can be inspired and get a lot of information from this book, so this book should be a must-have for every programmer. The book also provides information about some real-life interactions that fellow developers have while developing a new program. Readers may learn how to develop a program and what a process is.

Extended Information:

Ways to learn c#

I. Static and Instance Methods

A static method is a special member method that does not belong to a specific instance or object of a class, but to the class itself. Static methods do not operate on a specific instance and can only access static members of the class. Access to static methods can only use the class name without creating an object or using an object name class reference, and the static keyword must be present in the declaration of the static method modifier.

Instance methods can use any member of the class. To call an instance method, you must reference it using an instance or object of the class. Instance methods operate on a given instance of a class, and instances can be accessed using this in the instance method class. When calling an instance method, an object must be created first.

Simply put, static methods can only access static members and instance methods can access both static and instance members. The reason why static methods are not allowed to access instance member variables is because instance member variables belong to an object, whereas static methods do not necessarily have an object in existence at the time of execution. Similarly, because instance methods have access to instance member variables, allowing static methods to call instance methods would indirectly allow static methods to use instance member variables, which is wrong. For the same reason, the keyword this cannot be used in a static method.

II. Virtual and Non-Virtual Methods

If the declaration of an instance method contains the virtual modifier, the method is said to be virtual. If there is no virtual modifier in it, the method is said to be non-virtual.

The implementation of a non-virtual method is set in stone, and is the same whether the method is called on an instance of the class in which it is declared or on an instance of a derived class. In contrast, the implementation of a virtual method can be replaced by a derived class. The process of replacing the implementation of an inherited virtual method is called rewriting the method. In a virtual method call, the runtime type of the instance to which the call relates determines which implementation of the method is to be called. In a non-virtual method call, the compile-time type of the instance involved is the determining factor.

Third, external methods (this one is new and associates a lot)

When a method declaration contains the extern modifier, the method is said to be an external method. External methods are implemented externally, and the programming language is usually used other than C#. An external method may not be generic.

The extern modifier is often used in conjunction with the DllImport attribute so that the external method can be implemented by a DLL (dynamic link library). The execution environment may support other mechanisms used to provide external method implementations. When an external method contains a DllImport attribute, the method declaration must also contain a static modifier.

When using the DLLImport attribute, be sure to introduce the System.Runtime.InteropServices namespace, which provides a variety of members that support COMinterop and platform call services.

Seek expert recommendations for books on C# winform development

C# Programming Guide, Dan Yao, Tsinghua University Press, January 2011, online.

Here’s an example of WPF in chapter 8 of the book, creating a rotating 3D cube:

Please recommend a C# e-book

C# from Beginner to Master (2nd Edition)

From the beginner’s point of view, this book introduces in detail all aspects of WinForm application development using C# through easy-to-understand language and colorful examples. The book is divided into 28 chapters, including the first acquaintance with C# and its development environment, the beginning of the C# journey, variables and constants, expressions and operators, characters and strings, flow control statements, arrays and collections, properties and methods, structures and classes, advanced applications of object-oriented technology, exception handling, Windows Forms, Windows applications, Windows applications, Windows applications, Windows applications, Windows applications, Windows applications, Windows applications, Windows applications, Windows applications, Windows applications, data access technology, DataGrid, data access technology, data access technology, data access technology, data access technology, data access technology, data access technology. Data Access Techniques, DataGridView Data Controls, Program Debugging, Iterators and Partial Classes, Use of Generics, File and Data Streaming Techniques, Use of Help Files, GDI+ Graphics and Imaging Techniques, Crystal Reporting and Printing, Network Programming Techniques, Registry Techniques, Use of Threads, Packaging for Windows Applications, and Enterprise Personnel Management Systems. All the knowledge is combined with specific examples to introduce, involved in the program code is given detailed comments, can make the reader easily understand the essence of C# application development, quickly improve the development skills.

The book lists a large number of small examples, comprehensive examples and some project cases; the accompanying DVD contains synchronized video lectures, example source programs, “practice and exercise” answers, etc.; the book’s service website provides a module library, case library, question library, material library, Q&A service.

Table of Contents

Title 1 Basics

Chapter 1 Getting to Know C# and Its Development Environment

Chapter 2 Starting the C# Journey

Chapter 3 Variables and Constants

Chapter 4 Expressions and Operators

Chapter 5 Characters and Strings

Chapter 6 Flow Control Statements

Chapter 7 Arrays and Collections

Chapter 8 Properties and Methods

Chapter 9 Structures and Classes

Title 2 Core Technologies

Chapter 10 Advanced Applications of Object-Oriented Technology

Chapter 11 Exception Handling

Chapter 12 Windows Forms

Chapter 13 Windows Applications. Common Controls

C#WinForm Development Bookstore Management System Section 5

VisualStudio version: Enterprise2015

.net version: .NETFramework4.5< /p>

Sqlserver version: 2008R2


The content of this section

In the fourth section, the main focus is on logging in to the user’s additions, deletions, and changes in the page, in this lesson, let’s look at the entry of books. Simply put is that before books are entered, book information must be entered, and then the data can be imported and exported operations.


New book table

First of all, we need to create a new book, the basic information for the book number, title, publisher, author and price. Here the book number as a unique value, can not be repeated. The data table is as follows:

BookID: book ID, int type, self-incrementing.

BookNO: book number, primary key, unique value.

BookName: book name

BookPress: publisher

BookAuthor: author

CreateTime: creation time

BookCount: quantity

BookPrice: price

BookStatus: status, 1 normal, 0 has been down


Page design

New book list menu in book management.

The book list can view the information of all the current books, can add, modify and delete.


Functional code

New page can be added to add the book information, just fill in the book number, publisher, title, author and price, the number of books do not need to fill in the back of the sales can be based on the purchase of automatic calculation. Prevent manual error. Save the code:

Because adding and editing are the same page, so there will be Type parameters to distinguish between adding and editing, Type is equal to 1 is added, Type is equal to 2 is edited. Page closure, dragging the previous section has introduced will not be repeated.

The above is a list of pages added and edited, you can see that when added, the value of Type is given to the value of 1, update the value of Type is 2, and at the same time also gave the BookID, so that you can find the corresponding book information through the BookID.


Running results


Summary of the teaser

Reply “C# WinForm interface design tutorial” to get the gitee source code download address, mainly WinForm basic controls to explain the use. The use of this basic control are introduced.