Passing data between C # two forms1 Common variable Value passing public partial class Form1:form //parent Form {public string name= ""; Public Form1 () { InitializeComponent (); } private void
Get file name method:Methods of using System.IO.Path.GetFileName and System.IO.Path.GetFileNameWithoutExtension (no extension)Get file path method:Gets the full path of the current process, including the file name (process name).String str = this.
Recently, studied brother took a C # project, need to use the MDI form, but every time I display a subform, there will be a "flashing", it is obvious, look very uncomfortable, look for a long time, know that it is the show () subform will call the
Series One: Create a Windows service that can be installed, bootable, and can be stopped and uninstalled (Downmoon original)Series II: Demonstration of a recurring Windows service and debugging (Windows Service) (Downmoon)Series three: Windows
For example, the time of this article is.
Because the actual device uses the network transmission to the virtual serial port mode, problems still occur after on-site installation.
I finally figured it out from.
// Open a new serial port
1. this. close (); only closes the current window. If it is not the main form, it cannot exit the program. In addition, if there is a managed thread (not the main thread), it cannot exit cleanly;
2. Application. Exit (); force all messages to stop
NULL pointer and parameter passing
1) segment error. You can change the form parameter to a second-level pointer to void getmemory (char * P) {P = (char *) malloc (100);} void test (void) {char * STR = NULL; getmemory (STR); strcpy (STR, "Hello
Chapter 5 Operators and expressions
This chapter may be difficult to read if you have never played single-chip microcomputer or assembly, especially in the application of Shift Operators and bit operators. Pay more attention to the understanding
Exception
Many people blur the exception when discussing it, as if the so-called exception is try {} catch {}. The exception is exception, which is a very one-sided problem. As a result, exceptions affect performance ...... And so on. Below, I will
The array merges objects of the same type, while the ancestor merges objects of different types. The ancestor originated from the function programming language (F #)Net Framework defines eight generic tuple (from net4.0) and a static tuple class.
First, what is reflection?
Reflection provides encapsulated assembly, module, and type objects (type)
You can use reflection to dynamically create an instance of the type, bind the type to an existing object, or obtain the type from the existing
User Programs call C-standard I/O library functions to read and write files or devices. These library functions send read and write requests to the kernel through system calls, the kernel drives the disk or device to complete I/O operations. The C
Using system; using system. collections. generic; using system. reflection; using system. runtime. interopservices; using system. text; using system. windows. forms; namespace ICs. common {/// /// this class allows you to get all keyboard or mouse
Chapter 2 Basic Concepts
Poor code style and poor documentation directly lead to high costs for software development and maintenance.
In fact, a person always has his own code style, mainly sticking to a reasonable style, so that everyone can
1. format the currency (related to the system environment. The Chinese system uses the default format of RMB and the English system uses the format of USD)
String. Format ("{0: c}", 0.2): ¥0.20 (English OS result: $0.20)
By default, two decimal
# Region upload a single file to the server /// /// upload a single file to the server /// /// receive file resource Uri, for example: http: // xxxx/upload. aspx? Uid = 11111 // resource file to be sent, for example, @ "D: \ workspace \
2.11 2D plane closest point problem [closest pair problem], closestpair
[Link to this article]
Http://www.cnblogs.com/hellogiser/p/closest-pair-problem.html
[Question]
Specify the coordinates of N points on the plane to find the distance between the
Solve the "'cc' failed with exit status 1" error and clang: error: unknown argument error in mac osx, statusunknown
Error example:
error: command 'cc' failed with exit status 1
clang: error: unknown argument: '-multiply_definedsuppress'
Question: How many people in 1-N contain "49" numbers?
Idea: Digital DP, divided into three situations: to the case where the I bit is not 49, to the case where the I bit is not 49 and the highest bit is 9, to the case where the I bit is 49,
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