Several predecessors have provided valuable comments to my previous articles. I suggest you use your own examples. Therefore, in this article, I will explain how to use DirectoryInfo using my own small test. However, there are still some documents
Using System; using System. collections. generic; using System. linq; using System. text; using System. reflection; using System. data; using System. data. common; using System. web. script. serialization; using System. IO; using System. security.
Although MS provides us with a variety. net framework library, our program C # development brings great convenience, but sometimes, some control libraries with specific functions still need to be provided by a third party or written by themselves.
Private void button#click (object sender, EventArgs e)
{
Wb. Url = new Uri ("http://www.baidu.com ");
Wb. DocumentCompleted + = new WebBrowserDocumentCompletedEventHandler (wb_DocumentCompleted );
// This is an event for adding a load to
[Note: I cannot understand join () when I am new to multithreading.
Function
You have read all three books. After some experiments, I finally figured out the essence of join. Let's take a look at whether my writing method is easy to understand,
Effect:Display the status bar of the form through statusstripAt the same time, the status bar is divided into three partsDisplay text information on the leftBlank in the middleDisplay time information on the right side
Statusstrip sb = new
After a long afternoon, I realized why listview was created. I remember that I used the listview control in a project for foreign teachers at university, but it was in vb, the usage of C # is slightly different from that of C #. There are not many
File Processing must first import the namespace: using System.IO;
// Implementation Background: a text box, a button, and VS2005
Method 1: Use FileStream
// Instantiate a save file dialog boxSaveFileDialog sf = new SaveFileDialog ();// Set the file
Most of the time, we need to collect results based on certain conditions. For this reason, we need to create some set objects, insert and output them to these sets, and finally return the set. However, this is annoying.
One simple way to do this is
The namespace using System. Runtime. InteropServices where DllImport is located;The explanation of DllImportAttribute in MSDN is as follows: This attribute can be applied to methods. The DllImportAttribute attribute provides the information
C: The set tag has two different settings: var and target. Var "version" is used to set the scope attribute, and target "version" is used to set the bean attribute or Map value. Both versions have two forms: ry and ry. There is only another way to
The @ symbol in C # actually has a lot of usage. Let's take a look at the magic @.
1. restrict the use of strings
The @ symbol is added before the string, indicating that the Escape Character "no" is processed. If we write a file path, for example,
An empty array is an array with a subscript of 0, for example, a [0]. In the function, it makes no sense to declare an empty array. Of course, it cannot be compiled. In a class or struct, it can be declared in this way.
Struct ast_exten {
Char *
(1) Use the dynamic creation method
First, create an Excel Object and use ComObj:
Var ExcelApp: Variant;
ExcelApp: = CreateOleObject ('excel. application ');
1) display the current window:
ExcelApp. Visible: = True;
2) Change the Excel title bar:
1. Use interfaces for programming as much as possible
The. NET Framework includes classes and interfaces. When writing a program, you may know which class of. NET is being used. However, in this case, if you program with an interface supported by.
Currently, most C # databases are connected to SQL server. However, I am not familiar with the connection and operations of some old database files.This problem occurs today. You need to operate the DBF file database generated by FOXPRO.I have been
During program development, transactions are usually used to add, delete, and modify databases for all updates and rollback. A single database is relatively easy to do. If you need to operate multiple databases at the same time, you can use the
// Reprinted: http://hi.baidu.com/fxh19860822/blog/item/df35230b3ded441495ca6bd5.htmlIn C #, there are also three common serialization Methods: BinaryFormatter, SoapFormatter, and XML serialization./// /// Provides static methods related to
Sealed modifier indicates sealed
When used for a class, it indicates that the class cannot be inherited and cannot be used with abstract at the same time, because these two modifiers are mutually exclusive in meaning.
When used for methods and
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