winform(记事本--查找)】的更多相关文章

转载:http://www.cnblogs.com/Ruiky/archive/2013/02/01/2888674.html public static class TreeViewHelper { private static IEnumerable<TreeNode> childNodes(this TreeNode node) { return node.Nodes.Cast<TreeNode>() .SelectMany(x => x.selfAndChildNod…
MDI窗体第一个父窗体 把属性里的IsMdiContainer设置为true就可以了 父窗体连接子窗体 //创建一个新的类,用来连接别的窗体,并且别的窗体为唯一窗体 List<Form> F = new List<Form>(); private void opendao(Form f) { Form F1 = null; bool isopen = false; foreach(Form gf in F) { gf.Hide(); if(gf.Name == f.Name) {…
本题主要考察各种控件的应用 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace WindowsFormsApplication1…
private void button1_Click(object sender, EventArgs e) { if (!(String.IsNullOrEmpty(this.textBox1.Text))) { if (this.richTextBox1.Text.Contains(this.textBox1.Text)) { ); ) { MessageBox.Show("查找结束"); count = -; } else { this.richTextBox1.Focus();…
第17章 记事本 如何使用Visual C# 2010设计一个Windows应用程序——记事本,学习,可以进一步掌握MenuStrip(菜单).ToolStrip(工具栏).RichTextBox(高级文本框)和StatusStrip(状态栏控件)等控件的使用,以及如何使用CommonDialog(公共对话框)实现对文本的存取.格式设置等操作. 17.1 记事本简介 本章介绍的记事本,实现了Windows自带的记事本的部分功能外,并且还可以任意更改字体的字体类型.大小和颜色,并在状态栏中显示时间…
public Form1() { InitializeComponent(); } private void 剪切TToolStripMenuItem_Click(object sender, EventArgs e) { richTextBox1.Cut(); } private void 复制CToolStripMenuItem_Click(object sender, EventArgs e) { richTextBox1.Copy(); } private void 粘贴PToolStr…