Use of the Process class
// Process class namespace
Using system. diagnostics;
Start starts a process and associates it with the process class.
Kill immediately shut down the process
Waitforexit: waiting for the exit of the associated
C # has two basic data types: Value Type and reference type. The value type directly stores its data content, while the reference type stores object references. These two types have different meanings for the value assignment of variables. Value
The openfiledialog control has the following basic attributes:
initialdirectory
the initial directory of the dialog box
filter
the file filter to be displayed in the dialog box, for example,
/// /// Evaluate the Backtracking function of a string./// The subscript of the agreed sequence starts from 0./// The Backtracking function is the ing from the Integer Set [0, n-1] to N. N is the length of the string./// Definition of the
Divide the pixels with similar colors in an image into a group, and replace the color of those pixels with the group average value.
Create a relatively small BMP image, such as less than 128*128, or the running time may be a little long.
Use the
C # obtain a project Program Path Method.Asp.net webform uses "request. physicalapplicationpath to obtain the physical path of the virtual directory of the site, and finally contains" \ ";
Use C # To compile a winformProgramTo manage a Windows service. Start, stop, and restart a specified Windows service.
1. Introduce using system. serviceprocess;
2,
/// /// restart button /// /// /// private void btnstopandrun_click
Public class baseclass{Public bool sendemail (string toadd, string Sb, string subject) // toadd: Destination Address, SB: content, subject topic{Try{Mailaddress from = new mailaddress ("sweting@163.com"); // The address used to send the
The following are applicable to most ECMA-based languages such as as3, C #, JS, and Java.
// Logic programming1. Among the numeric types such as uint, Int, number, and float, the int speed is the fastest, rather than the uint that is generally
Here I will illustrate several common spli methods in C #.
1
, Separated by strings:
Using
System. Text. regularexpressions;
String
Str
=
"
Aaajsbbbjsccc
"
;
String
[] Sarray
=
RegEx. Split (STR,
"
JS
"
,
1.
This is not calledSent by IE mailto,Call win api
Mailto. ShellExecute (0, String. Empty, "mailto: vcool011@hotmail.com? Subject = This is the title. & Body = This is the text content !!!!!!!!! C: \ avatar. xml ", String. Empty, String. Empty,
1. Take the last day of a month
1. Take the last day of a monthMethod 1: calculate the number of days and years of the month.
+
Month
+
The number of days that can be added. For example, the last day of the month is used.
Private
C ++ string class
The C ++ standard template library (STL) contains a string class that is used in several computer science classes. In order to use the string class you shoshould include the following statements:# Include Using STD: string;
The
STACK: Stack, indicating a simple post-first-out non-generic set of objects. Push method into the stack, pop method out of the stack.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Using
System;
Queue : Queue, indicating the object's first-in-first-out set. The enqueue method is used to enter the queue, and the dequeue method is used to output the queue.
Code highlighting produced by Actipro CodeHighlighter
The system. Collections namespace contains interfaces and classes that define a set of objects (such as lists, queues, bit arrays, hash tables, and dictionaries.
System. collections. the generic namespace contains interfaces and classes that define
C # users often ask two questions: "Why should I write another
Code To use features built in windows? Why can't I complete this task for me without relevant content in the framework ?" When the Framework Team built their. net section, they
This article starts with the class relationship diagram of monitor, mutex, manualresetevent, autoresetevent, and waithandler. We hope to have a general understanding of common thread synchronization methods through this introduction, the application
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