2015年1月26日
摘要: When setting up a new SharePoint Server 2013 stand alone environment, you may encounter the error “The SDDL string contains an invalid sid or sid that... 阅读全文
posted @ 2015-01-26 15:45 赤色彗星 阅读(274) 评论(0) 推荐(0) 编辑
  2014年10月31日
摘要: ============================取前一天的日期 OK============================@echo off::前一天的日期,格式化输出echo ----代码开始----------echo Wscript.echo dateadd("d",-1,date)... 阅读全文
posted @ 2014-10-31 16:10 赤色彗星 阅读(36424) 评论(1) 推荐(0) 编辑
  2014年10月28日
摘要: date的用法D:\>date /T2010-12-10 星期五D:\>echo %date:~0,10%2010-12-10date:命令(别忘记date后面有个冒号)~0:从索引0开始取内容,10:取10个字符注:也就是从”2010-12-10 星期五“从索引0开始,往后取10个字符,正好是”2... 阅读全文
posted @ 2014-10-28 11:03 赤色彗星 阅读(1713) 评论(0) 推荐(0) 编辑
  2013年7月14日
摘要: 刚用web 版的TFS不久,建了许多做test的project,但是找不到删除界面。网上也搜到使用命令行的的方法,貌似管用:http://www.cnblogs.com/cracker/archive/2013/03/07/Tfs_DeleteProject.html但是当我按照提示去删除的时候一直报错说找不到指定的project:TF200016: The following project does not exist: "hello". Verify that the name of the project is correct and that the projec 阅读全文
posted @ 2013-07-14 10:56 赤色彗星 阅读(214) 评论(0) 推荐(0) 编辑
  2012年6月27日
摘要: 在对路径进行验证的时候用到了tooltip 控件,如果使用SetToolTip方法的话只有在鼠标在textbox上面时才会出现。如果希望tip一直显示,知道非法字符全部去掉才消失的话就要使用show方法。但是使用Show方法会出现控件气泡的箭头方向第一次出现时会指向下方: 正确的应该是这样的:解决方法就是:if(textBox1.Text.Contains("w")){toolTip1.Active=false;toolTip1.SetToolTip(textBox1,"test");toolTip1.Active=true;toolTip1.Show( 阅读全文
posted @ 2012-06-27 21:00 赤色彗星 阅读(5073) 评论(0) 推荐(0) 编辑
  2011年8月2日
摘要: 在应用程序的集成过程中,有时候需要WinForm应用程序和Javascript程序进行交互。比如说:应用程序是一个综合调度系统,在整个综合调度系统中,要实现定位,显示地图。综合调度平台的大部分功能都是使用WinForm实现的;但是定位和地图部分都不是自己开发的需要使用第三方接口,实现地图的展示,而第三方的接口使用的是Javascript实现的。这种情况有一下两种方法解决: 1,浏览器显示地图,WinForm实现综合调度台的其他功能,使用socket通信方式或者其他方式实现web浏览器和综合调度台之间的一种交互。 2,使用WinForm的JS之间的直接交互。 以上两种方法:第一种方法明显的缺点就 阅读全文
posted @ 2011-08-02 17:14 赤色彗星 阅读(1287) 评论(0) 推荐(1) 编辑
  2011年7月4日
摘要: 控件控件缩写ButtonBtnCalenderCldCheckBoxChkCheckBoxListChklstCompareValidatorCvDataGridDgDataListDlDropDownListDdlImageImgImageButtonImgbtnLabelLblLinkButtonLnkbtnListBoxLstBPanelPnlRadioButtonRdoRadioButtonListRdolistRangeValidatorRvRegularExpressionValidatorRevRequiredFieldValidatorRfvTableTblTextBoxTx. 阅读全文
posted @ 2011-07-04 15:57 赤色彗星 阅读(241) 评论(0) 推荐(0) 编辑
  2011年3月1日
摘要: InvokeRequired 当前线程不是创建控件的线程时为true比如你可以自己开一个Thread,或使用Timer的事件来访问窗体上的控件的时候,在线程中窗体的这个属性就是True的。简单的说,如果有两个线程,Thread A和Thread B,并且有一个Control c,是在Thread A里面new的。那么在Thread A里面运行的任何方法调用c.InvokeRequired都会返回false。相反,如果在Thread B里面运行的任何方法调用c.InvokeRequired都会返回true。是否是UI线程与结果无关。(通常Control所在的线程是UI线程,但是可以有例外) 阅读全文
posted @ 2011-03-01 16:15 赤色彗星 阅读(459) 评论(0) 推荐(1) 编辑
  2010年10月8日
摘要: System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); //打开config文件 config.AppSettings.Settings["username"].Value = “username”;... 阅读全文
posted @ 2010-10-08 13:31 赤色彗星 阅读(229) 评论(0) 推荐(0) 编辑
  2010年10月5日
摘要: DGV上的鼠标事件,MouseDown 、MouseUp、CellMouseClick等事件可参考。 if (MouseButtons == MouseButtons.Right) MessageBox.Show("OK"); // DataGridView 的 ContextMenuStrip 设定 DataGridView1.ContextMenuStrip = this.ContextMe... 阅读全文
posted @ 2010-10-05 20:15 赤色彗星 阅读(7943) 评论(0) 推荐(0) 编辑