摘要: 如何清除Form中所有的文本框内容?分两种情况:(1)当所有的文本框都是顶级控件,即它们都直接位于this.Controls(或groupBox.Controls)中,此时遍历一遍清除即可。(2)当文本框不全处于顶级,即部分包含在某些容器控件内,如groupBox中,由于控件在窗体中是严格分级摆放的。此时的文本框有的位于this.Controls中(即Form控件集中),有的则位于groupBox.Controls中。 对于(1),直接这样写就可: foreach (Control ctrl in Controls)//或为groupBox1.Controls/panel1.Controls{ 阅读全文
posted @ 2013-05-21 09:57 三颗咸鸭蛋 阅读(424) 评论(0) 推荐(0) 编辑
摘要: OOA Object-Oriented Analysis:面向对象分析方法 是在一个系统的开发过程中进行了系统业务调查以后,按照面向对象的思想来分析问题。OOA与结构化分析有较大的区别。OOA所强调的是在系统调查资料的基础上,针对OO方法所需要的素材进行的归类分析和整理,而不是对管理业务现状和方法的分析。 OOA(面向对象的分析)模型由5个层次(主题层、对象类层、结构层、属性层和服务层)和5个活动(标识对象类、标识结构、定义主题、定义属性和定义服务)组成。在这种方法中定义了两种对象类之间的结构,一种称为分类结构,一种称为组装结构。分类结构就是所谓的一般与特殊的关系。组装结构则反映了对象... 阅读全文
posted @ 2013-05-16 15:33 三颗咸鸭蛋 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>input丰富功能</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body> <form action="http://www.cnblogs.com/pete 阅读全文
posted @ 2013-05-05 23:23 三颗咸鸭蛋 阅读(162) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>placeholder</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body> <form action="http://www.cnblogs.com/pe 阅读全文
posted @ 2013-05-05 22:45 三颗咸鸭蛋 阅读(146) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>列表框和下拉菜单</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body> <form action="http://www.crazyit.org" 阅读全文
posted @ 2013-05-02 22:49 三颗咸鸭蛋 阅读(214) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>input元素</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body> <form action="http://www.crazyit.org" 阅读全文
posted @ 2013-05-02 21:33 三颗咸鸭蛋 阅读(155) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>文档的结构元素</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body> <article> <!--帖子的“头部”--> <header> 阅读全文
posted @ 2013-05-02 00:25 三颗咸鸭蛋 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 正常的普通表格<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>表格</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> table { border-color:blue; text-space-collapse:collapse; bor 阅读全文
posted @ 2013-04-30 00:54 三颗咸鸭蛋 阅读(130) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>列表相关标签</title></head><body><!-- 定义无序列表 --> <ul> <li>无序列表1</ 阅读全文
posted @ 2013-04-30 00:23 三颗咸鸭蛋 阅读(140) 评论(0) 推荐(0) 编辑