Method 1:
Use the Help class provided by. Net Framework to call the CHM Help file.
To Help the application, call the ShowHelp and ShowHelpIndex static methods in the Help class.
For example:
1. display the Help file content at the specified
The database connection string is read from the configuration file. Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Using System;Using System. Collections;Using System. Collections. Specialized;
Objects are top-level parent classes of all classes, and objects provide four Virtual Methods:
Equals, GetHashCode, ToString, Finalize.
In this series of articles, let's take a look at the use of these four methods.
The first is the reference type
Although there are examples of forms that do not obtain the focus, I don't know how to implement them, so I still want to "do not get the focus of the form" first, then, return the focus to the previous focus form.
You don't need APIs at the
In many cases, we need to list all the tables in the specified database. When using c # for software development, what methods can we achieve this goal? I have summarized this in the following 6 ways to achieve this goal.
1. sqldmoSQLDMO is an ideal
There are many solutions to perform file read/write operations on the LAN like processing files on the local disk,
FTP: the configuration is cumbersome and asynchronous transmission, resulting in complicated response to the results of the
I haven't written some examples for a long time, so I can paste a jitter form that I used to do.
The sound is basically the same as the form jitter of QQ.View source
Print?
///
/// Jitter form
///
/// form
public
void
JitterFrom(Form frm)
Event. MSDN explains: classes or objects can notify other classes or objects of related events through events. The class for sending (or triggering) events is called "publisher", and the class for receiving (or processing) events is called
Using System;Using System. Collections. Generic;Using System. Linq;Using System. Text;// You need to add System. Drawing and System. Windows. Forms references.Using System. Drawing;Using System. Drawing. Drawing2D;Using System. Drawing.
Represents (Delegate):
It is a function pointer in the C # language, which indicates that it can point to a function and call the implementation of this function during running. Let's take a look at its implementation steps:
Declare a delegate
-- The following information is from the Internet and will be summarized later --
C # has two types: Value Type and reference type:
Value Type: simple type (including int, long, double, etc.) and structure (structs) are both value types.
Reference
1. _ arglist
Let's start with _ arglist. _ Arglist is used to send parameters to methods. We usually pass parameters to the method through the parameter list specified in the function header. If we want to pass a new set of parameters to the method,
Recently, the project used to save a Word document in binary format to a database, and read and retrieve the binary data again to convert it into a Word document. Finally, I have summarized the following methods: Code
Code highlighting produced by
7 most common methods to obtain the current path of a program in C #
String str1 = Process. GetCurrentProcess (). MainModule. FileName; // obtain the file name of the currently executed exe.
String str2 = Environment. CurrentDirectory; // gets and
Public class Person{Public string FirstName {set; get ;}Public string LastName {set; get ;}Public int Age;}The previous process of assigning values to members of the Person class is as follows:Person person = new Person ();Person. FirstName = "Jack "
1. Create a new project. Assume there is an image on the desktop:
File Name: 1.jpg VcD4NCjxwPiZuYnNwOzwvcD4NCjxwPjIutPK/Signature + PC9wPg0KPHA + pgltzybzcm9 "/uploads/allimg/100426/092 S61R1-1.png" alt = "\"/>
3. Add a resource -- add an
In the previous project, the customer asked for an Excel report.
Because of the complexity of the report, we use the Excel template for creating the report first, and then write the data into the Excel template through COM (the disadvantage is that
This is part of the code I used to cut strings using regular expressions:
Function Description: extract multiple types of data details from a Logistics Information string
The data to be cut out includes:
Starting Place, destination, cargo quantity,
RFID radio frequency identification is a non-contact automatic identification technology. It uses RF signals to automatically identify the target object and obtain relevant data. It can work in various harsh environments without human intervention.
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