C # implement screen lock and prohibit keyboard and mouse

  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

C # Process Control)

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 []

C # Write a URL encoding method to convert gb23121 and obtain the weather forecast.

// // 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 ");

Notes on using C # To compile ActiveX Controls

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

Microsoft's C # language may be the cause of the demise of Java, but sun's one should be criticized

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

C # collection series (6): iterator

1. Example: UsingSystem; UsingSystem. Collections. Generic; UsingSystem. LINQ; UsingSystem. text; UsingSystem. collections;   NamespaceNettest { PublicClass Testiteration {   Public VoidTest () { SevencolorColoriteration

Obtain driver information based on hardwareid in C #

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

The evolution of LINQ and its impact on C # Design

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

C # collection series (2): Attributes

  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;

The wonderful functions in C #-7. String split and join

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)

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

Use conditional metadata attribute in C # To implement debug code

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

C # interoperability with Excel

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 + ";

Use C # and XML to create a dynamic hierarchical menu

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

C # is the performance of the developed program higher than that of the program with the same functions developed by VB.net?

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

C # camera screenshot

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 =

How does the data type in C # correspond to the type definition in API!

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

Avoid the "C # Treeview nodemousedoubleclick" double-click event error.

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

Use C # To write ActiveX Controls

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

C # collection series (4): Indexer

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,

Total Pages: 5902 1 .... 3202 3203 3204 3205 3206 .... 5902 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.