By default, the first row is selected and can be deselected by calling DataGridView's clearselection in the form's Load event.You can also setCurrentCell = null for DataGridView;You can also dgv a row that has already been selected. Row[0]. Selected=
The client communicates with the server by IP (identifying the host) + port number (identifying the application).IP Address Query method: Windows+r key, input cmd, input ipconfig.Port number: Can be set by itself, but usually 4
C # Use reflection to replicate the values of the same attributes between objects of two classes,
During object conversion, if you need to perform conversion between two classes with the same attribute fields, we want to copy the values of all
[Reconstruction: improving the design of existing code] Reading Notes -- Opening part: Restructuring Reading Notes[Reconstruction: improving the design of existing code] the General Directory of Reading Notes
1. Reconstruction principles
2. Bad
C # Json summary,
JSON formatting will occur when writing C #. The following code preliminarily summarizes how to use it.
Newtonsoft. Json. dll must be referenced in either of the following ways:
1. Use JsonSerializer
class JosnUnit {
C # use Oracle. ManagedDataAccess. dll,
When I first came into contact with C #, since the company used Oracle databases, how to connect C # To the Oracle database became the primary knowledge point. There was no ODP at that time..
Why is this
In c #, you can call this method directly to solve the thread access control problem,Problem
When c # is a beginner, a thread delegate is used to execute functions to prevent the software form from being suspended. Use the following code:
Thread th =
Asynchronous and thread blocking, asynchronous thread Blocking
Returned directoryIt should be understood in this way
Asynchronous: early developers had many misunderstandings about it. They thought that the main thread without blocking is
C # Remove the first and last characters or strings of a string,
When importing Excel attribute data to layer elements, Excel and SDE database data have an associated field, which is used to import matching attributes to the database.
In actual
C # Study Notes 02 ---- custom class libraries and decompilation,
2.1 custom class library
The custom class library can encapsulate the core code to ensure that the core code is not leaked when delivered to the customer, but also to prevent
C # string fuzzy match recursion,
Using split and Recursion
Private int search (string strValue, char [] searchchar, int index) {var temp = strValue. split (searchchar [index]); var countt = temp. count (); if (countt> 1) {++ index; if (temp [0].
ADO. Net,
ADO. NET is a database access architecture in the. NET Framework. ADO is short for ActiveX Data Objects. It is used to access the database by. NET applications.
The six objects of ADO. NET are:
1. Connection (connect to the database and
C # mutual calls with lua,
Lua is a good scalability language. The Lua interpreter is designed as a library that is easily embedded into the host Program. LuaInterface is used to implement mixed programming of Lua and CLR.
(1) C # Call Lua
Test
C # Why does Request. InputStream read the input stream as null,
When I tested the mobile App interface today, I found that the parameter in the body obtained through the POST method is always empty, but the data can be obtained when the data volume
. Net-C # asynchronous program knowledge point sorting,
Thread:Each Windows process has a Main Thread used to enter the entry point of the program, for example. the Main () method is used as the entry point of the program. When you call this
Reflection gets \ sets the property value, reflection gets the property value
1 // define class 2 public class MyClass 3 {4 public int Property1 {get; set;} 5} 6 static void Main () 7 {8 MyClass tmp_Class = new MyClass (); 9 tmp_Class.Property1 = 2;
What are the advantages of old programmers over new programmers ?, Advantages of programmers
First, how many practical work experiences are called Old programmers? I have defined it as five years. After all, I have developed it in the company for
C # reflection,
. Net is often used to dynamically load DLL, and DLL may contain various parameters, methods, forms. How to call to dynamically load these parameters, methods, and forms?
In C #, we need to use reflection. First, we need to
Solution for Newtonsoft. Json version conflict,If different third-party libraries in the same project use different versions of Newtonsoft. in the case of Json, you can add the following nodes to the configuration file of the main project. json is
Observer-intermediary design mode (non-delegate implementation mode) and Observer Design Mode
Implemented through interfaces to achieve loose coupling.
Main form
public partial class mainform : Form { public mainform() {
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service