{
Partial class Form1/* define Form1 have multiple distribution classes, methods and structure of */
{
///& lt; Summary>
///the necessary design variables,
///& lt; Summary>
Private System.Com ponentModel. IContainer components=null;/* define the components can be null, Private is to define the variable can only be declare them in the class or structure access (System.Com ponentModel IContainer is what things? */
///& lt; Summary>
///clean up any resources being used,
///& lt; Summary>
///& lt; Param name="disposing & gt;" If should release the managed resource, is true; Otherwise it is false, & lt; Param>
Protected override void the Dispose (bool disposing)/* the Dispose has the following properties: protected that protected members can be accessed in its own class and the derived class to override to expand or modify inherited methods, properties, indexers implemented or event of abstract or virtual, void specifies the method does not return value, at the same time due to the void for methods have no return value, therefore the Dispose method is a */
{
If (disposing & amp; & (the components!=null))
{
Components. The Dispose ();
}
Base. The Dispose (disposing);
}
# region Windows forms designer generated code
///& lt; Summary>
///designer support required methods - do not modify the
///use the code editor to modify the contents of this method,
///& lt;/summary>
Private void InitializeComponent ()
{
Enclosing btnReplace=new System. Windows. Forms. The Button ();//btnReplace paraphrasing System. Windows. Forms. The Button template and allocate memory
Enclosing txtOldKey=new System. Windows. Forms. The TextBox ();//txtOldKey paraphrasing System. Windows. Forms. TextBox template and allocate memory
Enclosing folderBrowserDialog1=new System. Windows. Forms. FolderBrowserDialog ();//folderBrowserDialog1 what is it?
Enclosing label1=new System. Windows. Forms. The Label ();//label1 form template and allocate memory
Enclosing txtNewKey=new System. Windows. Forms. The TextBox ();//textNewkey form... And allocate memory
Enclosing label2=new System. Windows. Forms. The Label ();//label2 form template and allocate memory
Enclosing SuspendLayout ();//what do you mean?
//
//btnReplace
//
This. BtnReplace. Location=new System. Drawing. The Point (176, 155);//to button location?
This. BtnReplace. Name="btnReplace";//button named
This. BtnReplace. Size=new System. Drawing. The Size (147, 47).//button size
Enclosing btnReplace. TabIndex=0;//?
This. BtnReplace. Text="replace the Word content";//the function of the TEXT is what mean?
This. BtnReplace. UseVisualStyleBackColor=true;//what do you mean?
This. BtnReplace. Click +=new System. EventHandler (enclosing btnReplace_Click);//calculate the operator what do you mean?
//
//txtOldKey
//
This. TxtOldKey. Location=new System. Drawing. The Point (130, 71);//text box position
This. TxtOldKey. Name="txtOldKey";//text box name
This. TxtOldKey. Size=new System. Drawing. The Size (255, 25);//text box size
Enclosing txtOldKey. TabIndex=1;//what do you mean?
//
//label1
//
This. Label1. AutoSize=true;//what do you mean?
This. Label1. Location=new System. Drawing. The Point (48, 73); Tag location//
This. Label1. Name="label1";//tag name
This. Label1. Size=new System. Drawing. The Size (67, 15);//label size
Enclosing label1. TabIndex=2;//what do you mean?
This. Label1. Text="the original keyword";//text content
//
//txtNewKey
//
This. TxtNewKey. Location=new System. Drawing. The Point (130, 102);//new text location
This. TxtNewKey. Name="txtNewKey";//xinwen name
This. TxtNewKey. Size=new System. Drawing. The Size (255, 25);//text box size
Enclosing txtNewKey. TabIndex=1;//? What do you mean
//
//label2
//
This. Label2. AutoSize=true;//what do you mean?
This. Label2. Location=new System. Drawing. The Point (63, 112);//-- --
This. Label2. Name="label2";//-- --
This. Label2. Size=new System. Drawing. The Size (52, 15);//-- --
Enclosing label2. TabIndex=2;//what do you mean?
This. Label2. Text="replace";//-- --
//
//Form1
//
Enclosing AutoScaleDimensions=new System. Drawing. SizeF (8 f, 15 f);//??
Enclosing AutoScaleMode=System. Windows. Forms. AutoScaleMode. The Font;//??
Enclosing ClientSize=new System. Drawing. The Size (528, 293);//window size?
This. Controls. The Add (enclosing label2);//window 2
tagThis. Controls. The Add (enclosing label1);//-- --
This. Controls. The Add (enclosing txtNewKey);//-- --
This. Controls. The Add (enclosing txtOldKey);//-- --
This. Controls. The Add (enclosing btnReplace);//-- --
This. Name="Form1";//window name?
Enclosing StartPosition=System. Windows. Forms. FormStartPosition. CenterScreen;//???????
The Word ". This Text="operation;
Enclosing ResumeLayout (false);//??
Enclosing PerformLayout ();//??
}
# endregion
Private System. Windows. Forms. The Button btnReplace;
Private System. Windows. Forms. TextBox txtOldKey;
Private System. Windows. Forms. FolderBrowserDialog folderBrowserDialog1;
Private System. Windows. Forms. Label label1;
Private System. Windows. Forms. TextBox txtNewKey;
Private System. Windows. Forms. Label label2;
}
}//the problem summary as follows, all kinds of defines whether the order were disrupted when programming, the framework construct why not after the first big small, but after the first small, private define why last???????
CodePudding user response:
Excuse me, can you tell me what you learn now to learn c #?//sincere. JPGCodePudding user response:
This order does not matter, does not guarantee in accordance with the order of the so-called creation, but also there is no need to have any order,If you need the user input sequences, should be tabindex to guarantee
CodePudding user response:
In this and c # class class variable scope, has nothing to do with the order,Can be simply interpreted as:
{
Variable 1;
{
Here you can use variables 1, 2, and you can use variables
}
The variable 2;
}
CodePudding user response:
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull