随笔分类 - WinForm
摘要:Text = Assembly.GetExecutingAssembly().GetName().Name + "【V" + Application.ProductVersion.ToString() + "】";
阅读全文
摘要:例子,对C盘根目录的RestSharp.dll进行签名,签名后文件为 RestSharp1.dll 第一步:用管理员 打开VS 开发人员命令提示 第二步:创建一个新的随机密钥对:sn -k RestSharp.snk 第三步:将DLL文件解开 ildasm C:\RestSharp.dll /out
阅读全文
摘要:private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.RowIndex >= 0 && e.ColumnIndex >= 0 && e.Value.ToS
阅读全文
摘要:public static bool IsIP(string IP) { var iCount = IP.Split('.').Count(); if (iCount != 4) { return false; } IPAddress ip; if (IPAddress.TryParse(IP, o
阅读全文
摘要:public string GetFtpBase64String(string FtpFilePath) { try { string sBase64String = string.Empty; FtpWebRequest request = (FtpWebRequest)FtpWebRequest
阅读全文
摘要:var BusDebts = db1.BusDebts.Where(s => s.BusOpt >= dts && s.BusOpt < dte && s.AreaName.Contains(AreaName) && s.FarmerName.Contains(FarmerName) && s.De
阅读全文
摘要:参考: http://www.cnblogs.com/michaelxu/archive/2009/09/27/1574905.html
阅读全文
摘要:protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.Enter) //监听回车事件 { if (dataGridViewX1.IsCurrentCellInEditMod
阅读全文
摘要:Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, e.RowBounds.Location.Y, dataGridViewX1.RowHeadersWidth - 4, e.RowBounds.Height); TextRende
阅读全文

浙公网安备 33010602011771号