After the registry is modified, the computer is not restarted and takes effect.
Const int wm_settingchange = 0x001a;Const int hwnd_broadcast = 0 xFFFF;
Intptr result1;
Public Enum sendmessagetimeoutflags: uint{Smto_normal = 0x0000,Smto_block =
I learned C, and later I learned a little Java (at the teacher's request). At that time, I spent some time studying C ++ or Java. After collecting materials from various aspects, based on my interests and hobbies, I began to become interested in C ++
1. This. Close (); only closes the current window. If it is not the main form, it cannot exit.ProgramIn addition, if there is a hosting thread (not the main thread), it cannot exit cleanly;
2. Application. Exit (); force all messages to stop and
the preceding figure shows the bound image. The following figure shows the status of the check box to be changed:
/// /// set the status of the check box to change the unit tree /// /// /// private void treelistjgsycommon_mousedown (Object
The binding tree node and icon status are as follows:
/// // bind the data reporting guide tree // private void bindjgsytree () {jgsytreeservice = new jgsytreeservice (); list listjgsytree = jgsytreeservice. getexportjgsytree (Global.
1. First, add the reference to the project, which can be placed on the BLL layer or the UI Layer.
2. Set the link URL in the UI Layer or configuration file or configure dynamic reading in the database.
3. Create a class to configure WebService
Document directory
Virtual function table
General inheritance (no virtual function overwrite)
General inheritance (with virtual function overwrite)
Multi-inheritance (no virtual function overwrite)
Multiple inheritance (with virtual function
The following is a class for C # Memory operations. You only need to add the following class to the corresponding project, and this project can directly operate on the memory!
Using system. runtime. interopservices; // to add the following namespace,
I haven't written about this for a long time. to familiarize myself with the basic knowledge, let's take a look at a small program.
All the functions are simulated. There is no graphical interface, that is, input and output in the window.
I. C # Delegate classA delegate is similar to a function pointer, but a function pointer can only reference static methods. A delegate can reference both static methods and instance methods.Delegated use is divided into three steps: 1. Delegate
Checks the version of the Office application,
Public class officeversion {// // obtain the access provider /// // whether the access provider is set successfully Public static string getaccessprovider () {// check the access version 2000/2003/20
There are two ways to access pointers,
Reference Type in 1. C #
2. pointer implementation in C #
Using system; using system. collections. generic; using system. LINQ; using system. text; using system. runtime. interopservices; // // offline UK
C # traverse struct
Type type = typeof(Color); PropertyInfo[] fields = type.GetProperties(); //FieldInfo[] fields =type.GetFields(System.Reflection.BindingFlags.Public|System.Reflection.BindingFlags.Static);
Compression and decompression can be divided into single file compression and whole folder compression. Folder compression has not yet implemented recursive folder, and is now enough to pass the test. The Code is as follows:
Using system; using
In C #, you can see the internal class, that is, the internal definition class of the class,
For example, the controlcollection and controlaccessibleobject classes are defined in the system. Windows. Forms. control class,
The internal class is
To register a global hotkey, you must use the Windows API method registerhotkey and unregisterhotkey.
I. Declare the registration hotkey method [dllimport ("user32.dll")]
Private Static extern int registerhotkey (intptr hwnd, int ID, int fsmodifiers,
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