Winform
Program The method set of the current path.
//Obtain the complete path of the current process, including the file name (process name ).StringSTR =This. GetType (). Assembly. location;Result: X: \ XXX \ xxx.exe (.exefile directory. .exe
Many custom DLL components are used in the scheduledjob project. To ensure the running efficiency, we use the cache method to load these components in advance, you can find and run the corresponding components in the memory when you wait for the
Enumerted type 1. Enumeration type is actually a set of names and values.2. Advantages of enumeration:1) easy to recognize2) Enumeration type is strongly typed3. From the perspective of the Il language, the enumeration type is actually compiled into
Custom Controls are divided into three types:
1. Composite controls: A combination of basic controls. Inherited from usercontrol
2. extended controls: inherits basic controls and extends some attributes and events. For example, inherit button
3.
The Treeview usage is worth summing up. I used it today and forgot how to execute the selected node event.
Private
Void Bindtreeview ()
{
Treeview1.labeledit =
False ;
//
Not editable
//
Add Node
Treenode root =
New Treenode ();
Root.
Once I had an interview, I want to write: "The Cat is screaming, the mouse is running, and the host is awake ".
Program You only need to check the delegation and events, but cannot write them out.
It is convenient to use delegation and events to
Choose project attribute Panel> debug> command line parameter settings. Separated by spaces. Read: String [] STR = environment. getcommandlineargs ();
Main function is C # ApplicationProgramThe main function can have four types of signatures:
After such a long time, I re-read C # advanced programming today. I am a little clear about the previously blurred things. Maybe I have recently visited some of the big boys in the garden.
Article About It.
I once again realized that CLR is in the
The principle is to add an item in the Registry Startup item.
Path:
SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run
Or directly: Run-> Regedit to find this path and add an item.
Using System;
Using System. Collections. Generic;
Base type
I had such a question before: What is the difference between int and system. int32? In fact, system. int32 is the definition in FCL. Most compilers have their own definitions for these types. They automatically establish ing
First, let's take a look at the differences and similarities between struct and class.
1. The biggest difference is that the data type is different. The former is the value type, while the latter is the reference type.
2. Because of different data
Step 1:
Create a new Win window project, and add web reference Feixin WebService, reference address: http://io.feirobot.cn/fWebSer.asmx? WSDL, rename reference to: fetionobj
Step 2:
Add the following controls to the main window:
1. Add the
It is assumed that there are only two levels of nodes, and the multi-level method is similar.
Traverse the node and find the node to be selected based on the selected node text.
Treeview. selectednode = selectnode;
///
///
Set the
Program When running, write down the number and judge it. Pass
Getforegroundwindow () finds the currently activated program.
Using System;
Using System. Collections. Generic;
Using System. componentmodel;
Using System. Data;
Using System.
Run Visual Studio. NET to create a C # Windows Service Project
Project name: testservice
Code :
Using
System;
Using
System. Collections. Generic;
Using
System. componentmodel;
Using
System. Data;
Using
System. diagnostics;
In C #, after compiling and deploying a Windows Service Project, you can use servicecontroller to control the Windows Service externally: it can be stopped or restarted, you can also pass specific commands to Windows service,
After receiving these
simple timer applications are not complex. You can set several parameters based on your own situation. The following Code :
Private voidRun (){TimercallbackTCB =NewTimercallback(Executerun); // The timer starts to run after 5 seconds
Call Windows API functions
Mcisendstring ();Optical Drive pop-up and off
//Using system. runtime. interopservices;[Dllimport ("Winmm. dll")]
Public static extern int mcisendstring ( string S1, string S2, int I1, int
Demo Interface
You can see from the interface that a DataGridView, BindingNavigate, and BindingSource controls are required during design, respectively named dgvInfo, bdnInfo, and bdsInfo.
Add several lable and botton for page selection in the
Since today, I have read CLR vir C #. Although it is an English version, I hope I can find a resonance in the just-read. net article.
This article briefly describes what happened during the execution of the Source Code to the CPU Native
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