Using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Diagnostics; using System.Threading; A summary description of the namespace
About type Object:A 1.object type can refer to any type of instance;2.object types can store values of any type;3. You can define parameters of type object;4. You can use object as the return type.But--there's a big problem with that.
1. Because the
String str1 =process.getcurrentprocess (). mainmodule.filename;//can get the file name of the currently executing EXE.
String str2=environment.currentdirectory;//gets and sets the fully qualified path to the current directory, which is the directory
Setting and reading the configuration file in VS 2005 has become simple and strongly typed, and the read value can be assigned directly to the corresponding variable without casting.
For example: DateTime userDateTime1 =
Programs | dialog box
under WinForm, we can use the system dialog (MESSAGEBOX) to achieve the idea is to read the MessageBox return value (yes or no) to achieve control of the operation. Here is a demo code code likeprivate void Button1_Click
Create PDF file
Using System;
Using System.IO;
Using System.Text;
Using System.Collections;
Namespace Paladin.utility
{
Summary description of the topdf.
public class Topdf
{
static float pagewidth = 594.0f;
static float pagedepth =
Download
Save Folder selection dialog box referenceAdd Reference System.Design.dll/Using System.Windows.Forms.Design;
private void Button4_Click (object sender, System.EventArgs e){
Select the save path for the fileAdd a Form control
For the new () constraint, you may have a misconception that after you have used the new constraint, you are creating an object that is consistent with a non-generic version:
public class Testerwhere T:new (){Public Tester (){t = new t ();//is equal
Enlarge | solve | Problem recently, when I was writing tools, I found a very disgusting problem, when using drawimage to enlarge the image, the default amplification algorithm of C # is not Nearestneighbor algorithm, and Java Swing's DrawImage
C # calling DOS commandI want to make an assembly language editor, but I can't get the running information when I call Masm.exe. The code is as follows:Process P = new process ();P.startinfo. WorkingDirectory = "e:\\";p.StartInfo.FileName =
Collection
A collection that represents a set of objects that can be accessed by traversing each element (in particular, you can use a Foreach loop to access)A collection consists of multiple elements, that is, a collection class object and N
function | statement
***********************************************************************************
* Copyright Notice* This article is for ocean all, the copyright belongs to ocean all, any website* and media reprint must include this
A using directive has two uses:
Allows types to be used in namespaces so that you do not have to qualify the types that are used in that namespace.
Create aliases for namespaces.
The using keyword is also used to create a using
Using System;Using System.Drawing;Using System.Windows.Forms;
public class Form4:form{Private TreeView TreeView1;
Public FORM4 (){TreeView1 = new TreeView ();
This. SuspendLayout ();
Initialize TreeView1.Treeview1.allowdrop = true;Treeview1.dock =
Function
virtual function: Declared by virtual, it allows to be overridden in a derived class, and overriding a method must first be known as virtualpublic class MyClass{public virtual int Myint (){function body;}}Class Myclass1:myclass{public
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