滴水穿石

Share

导航

2014年5月12日

sublime如何关闭响应慢的插件的提示

摘要: Preferences > Settings - UserAdd the following:"detect_slow_plugins": falsesublime真是给程序猿用的。完全是手动编辑的。 阅读全文

posted @ 2014-05-12 11:02 ForestSheep 阅读(226) 评论(0) 推荐(1) 编辑

2009年1月27日

将excel文件的内容导入sql server数据库的方法

摘要: 1,首先创建一个相应的表,格式保证和excel文件相同。2,在导入之前,要把数据库安全限制的开关打开。地点是sql server 构成 tool 的 security 构成里面的机能security构成里面的 open row set & open data source 选项打上钩。确定。3,输入sql语句,执行导入例子如下[代码]4,其他注意项 导入中有可能碰到数据类型不匹配的错误。最... 阅读全文

posted @ 2009-01-27 10:21 ForestSheep 阅读(903) 评论(0) 推荐(0) 编辑

2008年10月31日

DataGridView 中的 CheckBox

摘要: 1.在DataGridView中添加一条列,类型为DataGridViewCheckBoxColumn 2.添加CellClick事件编码如下 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1private void DataGr... 阅读全文

posted @ 2008-10-31 13:46 ForestSheep 阅读(252) 评论(0) 推荐(0) 编辑

2008年10月28日

C# 播放声音和FLASH

摘要: 一、在C#播放声音 新建一个C#的Windows Form工程(Windows应用程序),并且定义两个菜单按钮(menuItem1,menuItem2)。 选择菜单中的“工具”中的“自定义工具箱(添加/移除工具箱项)”,在自定义工具箱的窗口中,点击展开“COM 组件”项,选中“Window Media Player”选项。确定后在“工具箱”中便会出现“Windows Media Player... 阅读全文

posted @ 2008-10-28 10:18 ForestSheep 阅读(1039) 评论(0) 推荐(0) 编辑

2008年10月21日

远程通信

摘要: 客户端 Client Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1using System; 2using System.Runtime.Remoting.Channels; 3using System.Runtime.Remot... 阅读全文

posted @ 2008-10-21 13:35 ForestSheep 阅读(206) 评论(0) 推荐(0) 编辑

2008年10月4日

TextBox的文本换行问题

摘要: TextBox换行 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1public void fun() 2{ 3textbox1.Multiline = true; 4textbox1.Text = "a" + "\r\n" + "b"; 5}... 阅读全文

posted @ 2008-10-04 15:11 ForestSheep 阅读(236) 评论(0) 推荐(0) 编辑

2008年10月3日

寻找TreeView中的项(c#)

摘要: 寻找TreeView中的项 自己得出的结论: Nodes.Find 看来只能找自己和自己下一层的东西(第二个参数设为true),如果要找更多的层,好像只能用foreach来循环了。 find只能用来找完全相等的东西,而且一定是Name属性,Name属性在构造TreeNode时没有给他值,就不能检索了。除非以后又设定过Name(构造函数提示(string key, string text))text... 阅读全文

posted @ 2008-10-03 14:00 ForestSheep 阅读(710) 评论(0) 推荐(0) 编辑

2008年10月2日

关于C#的几个问题

摘要: 1 类的成员的宣言时,不加任何访问限制的关键字,则此成员的访问属性是什么?也就是说没有public private internal protected的时候。 答:根据目前的测试,虽然不敢断言,是private的可能性很大。 2 关键字default的作用 答:在switch case中使用。 还有一个作用好像是返回类型的默认值,具体还有研究。 3 关键字virtual的作用 答:... 阅读全文

posted @ 2008-10-02 20:58 ForestSheep 阅读(323) 评论(5) 推荐(0) 编辑