摘要: 第1章 理解.NET Framework与C#1..NET框架1)2001年发布的.NET Framework经历5个版本:1.0,1.1,2.0,3.0,3.5 功能强大,主要体现在: 支持多种语言程序 具有强大的内库,提高开发效率 完善的数据安全管理 可开发多种类型的程序2).NET Framework由框架类库(FCL)和公共语言运行时(CLR)这两个主要的组件组成 CLR包含两个重要组成部分:CTS(通用类型系统)和CLS(公共语言规范)2.C#语言1)经历了1.0,2.0,3.0等版本2)C#的优势:完全面向对象 安全性 可移植性 高性能 适合开发多种不同类型程序3.命名空间 1)语 阅读全文
posted @ 2012-05-09 23:04 微笑de『MY』 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Windows键+D 快速显示桌面Windows键+M 最小化所有被打开的窗口。 Windows键+CTRL+M 重新将恢复上一项操作前窗口的大小和位置 Windows键+E 打开“资源管理器” Windows键+F 打开“查找所有文件”对话框 Windows键+R 打开“运行”对话框 Windows键+U 打开“打开工具管理器”Windows键+BREAK 打开“系统属性”对话框 Windows键+CTRL+F 打开“查找计算机”对话框 ALT+F4 关闭当前应用程序 ALT+SPACEBAR 打开程序最左上角的菜单 ALT+TAB 切换当前程序 ALT+ESC 切换当前程序 ALT+ENT 阅读全文
posted @ 2012-05-09 23:01 微笑de『MY』 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Ctrl+K+Crtr+C: 注释选定内容Ctrl+K+Crtr+U: 取消选定注释内容Ctrl+Shift+L: 删除当前行Ctrl+M,M: 隐藏或展开当前嵌套的折叠状态Ctrl+M,L: 将所有过程设置为相同的隐藏或展开状态Ctrl+E,W: 自动换行 Ctrl+G: 转到指定行Shift+Alt+箭头键: 选择矩形文本 Alt+鼠标左按钮: 选择矩形文本Ctrl+Shift+U: 全部变为大写 Ctrl+U: 全部变为小写代码快捷键Ctrl+Shift+空格键 / Ctrl+K,P: 参数信息Ctrl+K,I: 快速信息Ctrl+E,U / Ctrl+K,U: 取消选定注释内容Ctrl 阅读全文
posted @ 2012-05-09 23:00 微笑de『MY』 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-05-09 22:55 微笑de『MY』 阅读(725) 评论(0) 推荐(0) 编辑
摘要: int[]pixels=newint[16*16];//用int数组可以构建一个图片 Imageimage=java.awt.Toolkit.getDefaultToolkit().createImage(newMemoryImageSource(16,16,pixels,0,16)); CursortransparentCursor=java.awt.Toolkit.getDefaultToolkit().createCustomCursor(image,newPoint(0,0),"invisiblecursor");//invisiblecursor是任意取的 set 阅读全文
posted @ 2012-05-09 22:31 微笑de『MY』 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 调用Windows API1> 将TextBox的TabStop设置为false;2> 在程序中相应位置加入下列代码using System.Runtime.InteropServices;……[DllImport("user32", EntryPoint = "HideCaret")]private static extern bool HideCaret(IntPtr hWnd);……在TextBox的MouseDown事件中添入:HideCaret(((TextBox)sender).Handle);文章出处:飞诺网(www.diybl 阅读全文
posted @ 2012-05-09 22:21 微笑de『MY』 阅读(666) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml;public partial class LoadXML : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { string xml = "<order id='001' 阅读全文
posted @ 2012-04-22 20:27 微笑de『MY』 阅读(123) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml;using System.Xml.XPath;public partial class UpdateNode : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { XmlDocument xmlDoc 阅读全文
posted @ 2012-04-22 20:27 微笑de『MY』 阅读(206) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml;public partial class InsertNode : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { XmlDocument xmlDoc = new XmlDocument(); x 阅读全文
posted @ 2012-04-22 20:26 微笑de『MY』 阅读(235) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Linq;using System.IO;namespace Example_Linq2Xml{ public class ContractManager { //文档根元素 static XElement root = null; const string XML_PATH = "data.xml"; static ContractManager() { if (!File.E 阅读全文
posted @ 2012-04-22 19:51 微笑de『MY』 阅读(205) 评论(0) 推荐(0) 编辑