文本编辑器(c#)源码

时间:2012-12-13 13:45:21
【文件属性】:

文件名称:文本编辑器(c#)源码

文件大小:98KB

文件格式:RAR

更新时间:2012-12-13 13:45:21

c#

自己的程序源码namespace zdm { partial class formFindReplace { ///

/// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; /// /// 清理所有正在使用的资源。 /// /// 如果应释放托管资源,为 true;否则为 false。 protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows 窗体设计器生成的代码 /// /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.buttonFind = new System.Windows.Forms.Button(); this.buttonReplace = new System.Windows.Forms.Button(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(35, 15); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(65, 12); this.label1.TabIndex = 0; this.label1.Text = "查找字符串"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(35, 60); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(65, 12); this.label2.TabIndex = 1; this.label2.Text = "替换字符串"; // // textBox1 // this.textBox1.Location = new System.Drawing.Point(135, 12); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(120, 21); this.textBox1.TabIndex = 2; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(135, 51); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(120, 21); this.textBox2.TabIndex = 3; // // buttonFind // this.buttonFind.Location = new System.Drawing.Point(49, 110); this.buttonFind.Name = "buttonFind"; this.buttonFind.Size = new System.Drawing.Size(75, 23); this.buttonFind.TabIndex = 4; this.buttonFind.Text = "查找下一处"; this.buttonFind.UseVisualStyleBackColor = true; this.buttonFind.Click += new System.EventHandler(this.buttonFind_Click); // // buttonReplace // this.buttonReplace.Location = new System.Drawing.Point(164, 110); this.buttonReplace.Name = "buttonReplace"; this.buttonReplace.Size = new System.Drawing.Size(91, 23); this.buttonReplace.TabIndex = 5; this.buttonReplace.Text = "替换查到字符"; this.buttonReplace.UseVisualStyleBackColor = true; this.buttonReplace.Click += new System.EventHandler(this.buttonReplace_Click); // // formFindReplace // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(292, 169); this.Controls.Add(this.buttonReplace); this.Controls.Add(this.buttonFind); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "formFindReplace"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "查找和替换"; this.TopMost = true; this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.Button buttonFind; private System.Windows.Forms.Button buttonReplace; } }


【文件预览】:
文本编辑器
----文本编辑器.suo(18KB)
----文本编辑器.sln(934B)
----文本编辑器()
--------FileEdit.cs(12KB)
--------文本编辑器.csproj.user(249B)
--------formAbout.resx(6KB)
--------FileEdit.Designer.cs(22KB)
--------bin()
--------formAbout.Designer.cs(3KB)
--------obj()
--------formFindReplace.resx(6KB)
--------Properties()
--------Program.cs(465B)
--------formFindReplace.Designer.cs(5KB)
--------FindFile.Designer.cs(6KB)
--------FileEdit.resx(23KB)
--------formFindReplace.cs(1KB)
--------CreateThread.cs(2KB)
--------FindFile.cs(2KB)
--------formAbout.cs(451B)
--------文本编辑器.csproj(5KB)
--------CreateThread.Designer.cs(3KB)
--------CreateThread.resx(6KB)
--------FindFile.resx(6KB)

网友评论

  • 一般般,打开一个TXT后修改后保存和另存为都是新建一个而不是直接保存在打开的那个TXT里
  • 代码简单了点·但也了解思路了
  • 资料还行,不过没有类的思想
  • 参考一下你的代码
  • 我局的对我还是很不错的 挺好的
  • 不错 虽然功能简单 但还算全面 代码也易理解
  • 很好,对我非常有用
  • 代码也简单易懂
  • 能用,代码也简单易懂,不错。
  • 代码简单了点·但也了解思路了