1. to lock the system and prevent others from using it, you can call the system to lock the API function.
// Introduce API functions[Dllimport ("USER32")]Public static extern bool lockworkstation (); // This is the system lock that calls
Start a process. For example, open notepad:
Process process1 = new process ();
Process1.startinfo. filename = "notepad.exe ";
Process1.startinfo. windowstyle = processwindowstyle. maximized;
Process1.start ();
Terminate a process:
Process []
// // obtain the weather forecast information based on the city. /// // the Chinese name of a city is as follows: fuzhou //
Public static string getsinawether (string ps_cityname) { string strcity = strconv (ps_cityname, "gb2312 ");
After my first blog was published, I was very happy to get your support and my work was recognized. Of course, many of my friends have made great comments. I want to explain my understanding of these problems here.The control that I completed is an
Unprecedented SharpnessMicrosoftC #The language may beJavaButSunCompanyOneShould be criticized
Author:Robert X. cringely
It is easy to criticize Microsoft. This is my profession. Yes, they are bullying and weak, and their technology is often
Recently, you need to obtain the Device Driver Based on the device's hardwareid.ProgramInformation, such as the driver version. After exploration, two different solutions have been obtained. The two solutions have their own merits and can be written
I used to be connections.
A super fan of the series, James Burke from the Discovery Channel
Host the program. The basic assumption is: how seemingly unrelated discoveries affect other discoveries, which ultimately facilitate modern life. The
1. Here we mainly demonstrate the inheritance and overwrite of attributes.
2. Understand attributes as methods. In fact, the compiler is to generate attributes.
Example:
UsingSystem;
UsingSystem. Collections. Generic;
UsingSystem. LINQ;
Many times, string data is processed, such as reading or storing data from a file.-You may need to add separators (such as commas in a CSV file) or use one separator to merge string sequences.
Many people know how to useSplit ()But use the
C # Regular Expression preparation
For a while, regular expression learning was very popular. At that time, I could see several regular expression posts in one day at csdn, during that time, I learned some basic knowledge through the C # string
1
[Conditional (
"
Debug
"
)]
2
Private
Void
Debug_trace (
String
Strmsg)
3
{4Console. writeline (strmsg );5}
this statement is clear. The Code is easy to read and can shield potential bugs. 1
Search for it on the Internet. Asp.net can read the Excel file like the ACCESS database:
String source = file_excel.value; // complete path of the execel File
String sqlconn = "provider = Microsoft. Jet. oledb.4.0; Data Source =" + Source + ";
From data exchange in complex B2B transactions to Application
Program The configuration file structure is provided, and XML can be used in many aspects! As XML is continuously supported by software, we can fully predict that XML applications will
I often see a post in the forum asking: Which of C # And VB.net have higher performance? Then the people who followed the post firmly said: C # And VB.netCodeThe generated Il is the same, and the performance is naturally the same! I think so all the
Using System; Using System. runtime. interopservices; Using System. drawing; Using System. Drawing. imaging; Namespace Video { /// /// A class for controlling cameras /// Public Class Videowork { Private Const Int Wm_user =
Description of unmanaged C-language managed classes in wtypes. h
Handle void * system. intptr 32-bit
Byte unsigned char system. byte 8-bit
Short short system. int16-bit
Word unsigned short system. uint16 16-bit
Int INT system. int32
When using the winform standard Treeview control, the following similar nodes are added:
Parentnode1
--- Childnode1
--- Childnode2
Parentnode2
--- Childnode1
--- Childnode2
When parentnode2 is collapsed, double-click parentnode2. The
Document directory
Handling Events
This article is connected to the world of red horse with C # Write ActiveX Control (2) http://www.cnblogs.com/homer/archive/2005/01/08/88780.html
I made a javascript example that can call the page in the
1. Overview
The indexer allows instances of classes or structures to be indexed like arrays. The indexer is similar to an attribute, but its accessors use parameters. The indexer syntax allows you to create a client application to use it as a class,
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