Query expression (Expression)
Everyone should be familiar with the SQL statement, before C # 2.0, embedded in the code in the SQL is the following:
1public void Test ()
2{
3SqlConnection C = new SqlConnection (...);
4 C.open ();
5
String
We often do one thing, is in the article system, the interception of a certain length of the article title, more than the specified length, add "..."
such as two strings:String str1 = "Chinese people want AH abc ~";String str2 = "1 Chinese 234
c++| Object | array problem:
public class Test
{
public static void Main (string[] args)
{
Person[] A = new person[2];
for (int i = 0; i {
A[i].age = i; Null pointer exception
System.out.println (A[i].age);
}
}
}
Class Person
{
public int age;
A string and StringBuilderA small number of string operations should not be used StringBuilder.
Because a string is not an object, each operation generates a new string object for the superposition of strings. So for a lot of string operations, we
Programming | network
1. Fill in the blanks
1 attributes that enable the control to respond to user interaction are enabled.
2 The property that controls whether the control displays is Visible.
3 If you want to enter a password in the text box,
How to make components with Visual C #
Using Visual C # as a component is an easy thing to do. At least it's much easier than using Visual C + +. In this article, I'll give you a detailed description of how to make a component. We can complete
Download | source code
(i). Description
Obtain the MAC address of the device's NIC and the volume label of the hard disk
(b). Picture sample
(iii). Code
Using System;Using System.Management;
Namespace netcard{Reading devicespublic class
Program | browser
This morning I wrote a time server with sockets, when I said to be ready for a while to do not need the client to receive dataBut using the browser to receive data program, very smooth, one day time I do it:Gossip does not say,
Previously wrote a directory through the calculation of all files and subdirectories to obtain the number of files in a directory, the result found that the speed is very slow, far less than the system itself in the directory properties of the speed
Variables | specification
Original: "C # Version 3.0 Specification", MicrosoftTranslation: Lover_pIn a local variable declaration with an implicit type (implicitly typed local variable declaration), the type of the declared localized variable is
Vb. NET is a boutique in. NET, the soul in C #. NET, combining the two will play infinite power, hehe, see how you play it, write a simple example to illustrate how to combine vb.net with C #.VB.net:
There is a Microsoft.VisualBasic.IsNumeric
text box
In many cases, we need to limit the contents of the input text box to avoid the entry of spam and illegal information. But many of the methods listed in the textbook are more or less flawed, or they cannot prevent Chinese from being
excel| programming to open Excel's VBA Help and view the Excel object model, it is easy to find several collections and objects needed to complete this feature: application, workbooks, workbook, worksheets also has worksheet and range. Application
Program | design
because there are a lot of places in your unit where you send SMS messages, you might be from a Web page, a form in Outlook, or a system that may be a host of a non-Windows operating system, so after thinking about it, think the
Asynchronous
Asynchronous programming is a feature supported by many areas of the common language runtime, such as remoting, ASP.net, and Windows forms. Asynchronous programming is the core concept in the. NET Framework. Use. NET asynchronous
To set a shortcut key, you must use the two methods below user32.dll.
BOOL RegisterHotKey (HWND hwnd,int ID,UINT Fsmodifiers,UINT VK);
And
BOOL Unregisterhotkey (HWND hwnd,int ID);into C # code, you first need to refer to the namespace
Stored Procedures | issues
Calling stored procedures in C # is primarily a matter of parameter usage (input parameters, output parameters, return values)It is assumed that Conn is a defined connection, proc is the stored procedure name
1, call no
Data | database | conversion
/*A, note that the database coding to be compatible with gb2312 and Big5, such as the use of MySQL UTF8b, the code in the way of traversal, and with Mysqlcommandbuilder for batch update, so the table can be converted
Process | data
Brief introduction:
This article focuses on the use of WM_COPYDATA messages to implement data transfer between two processes.
Several ways to communicate between processes:
In Windows programs, there is often a need to exchange data
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