2013年12月26日

该文被密码保护。 阅读全文
posted @ 2013-12-26 10:48 Mis_Eur 阅读(1) 评论(0) 推荐(0) 编辑

2013年12月4日

摘要: 更改表中某一列值中的某个字符:update nwother_callpolice set imgrgb =replace(cast( imgrgb as varchar(50)) ,',',',')nwother_callpolice:表imgrgb:列名将中文逗号“,”更正为“,”查询出时间列表中的 小时:分钟select distinct(to_char(t.forecasttime,'HH24:MI')) as timenew from nwbase_stationforecast t order by timenew asc 阅读全文
posted @ 2013-12-04 09:45 Mis_Eur 阅读(120) 评论(0) 推荐(0) 编辑

2013年11月14日

摘要: 主要在控件的mouseclick事件中触发:private void picbox_MouseClick(object sender, MouseEventArgs e){ PictureBox pic = (PictureBox)sender; Bitmap picBackGround = new Bitmap(pic.Width, pic.Height); pic.DrawToBitmap(picBackGround, new Rectangle(0, 0,pic.Width, pic.Height)); ... 阅读全文
posted @ 2013-11-14 14:48 Mis_Eur 阅读(507) 评论(0) 推荐(0) 编辑

2013年11月13日

摘要: 从数据库获取图片文件,显示在picturebox中:1 byte[] arr;2 if (fdtThisColor.Rows[0]["colorimage"] != null && fdtThisColor.Rows[0]["colorimage"].ToString() != "")3 {4 arr = (byte[])(fdtThisColor.Rows[0]["colorimage"]);5 MemoryStream ms = new MemoryStream(); //新建内存流6 ms.W 阅读全文
posted @ 2013-11-13 14:21 Mis_Eur 阅读(4219) 评论(0) 推荐(0) 编辑

2013年10月16日

摘要: 首先选择保存图片的路径: saveFileDialog1.Title = "保存"; saveFileDialog1.Filter = "*.png|*.png"; saveFileDialog1.RestoreDirectory = true; if (saveFileDialog1.ShowDialog() == DialogResult.OK) { timer1.Enabled = true; } 其次保存... 阅读全文
posted @ 2013-10-16 15:09 Mis_Eur 阅读(563) 评论(0) 推荐(0) 编辑

2013年10月12日

摘要: (转载百度空间)C#根据当前时间确定日期范围(本周、本月、本季度、本年度)在C#的开发当中经常遇到关于一个日期时间"+/-"一段时间的问题,下面是一些相关总结,供大家参考.DateTime dt = DateTime.Now; //当前时间DateTime startWeek = dt.AddDays(1 - Convert.ToInt32(dt.DayOfWeek.ToString("d"))); //本周周一DateTime endWeek = startWeek.AddDays(6); //本周周日DateTime startMonth = dt. 阅读全文
posted @ 2013-10-12 10:04 Mis_Eur 阅读(194) 评论(0) 推荐(0) 编辑

2013年9月28日

摘要: datatable dt=new datatable();dt.Merge();//合并两个表格dt.DefaultView.ToTable();//提取已有表格中列集合,形成新的表格dt.select();//更具条件刷选表格,形成datarow[]数组dt.Importrow();//复制已存在表中的某一行random 随机函数 阅读全文
posted @ 2013-09-28 11:00 Mis_Eur 阅读(168) 评论(0) 推荐(0) 编辑

2013年9月27日

摘要: 增加:if (fFrmStationChoose.StationsList != null)//fFrmStationChoose.StationsList为一个装载新数据的表 { DataTable dt = (DataTable)clbxStations.DataSource; if (dt != null) { dt.Merge(fFrmStationChoose.StationsList, true... 阅读全文
posted @ 2013-09-27 15:52 Mis_Eur 阅读(685) 评论(0) 推荐(0) 编辑

2013年9月25日

该文被密码保护。 阅读全文
posted @ 2013-09-25 20:28 Mis_Eur 阅读(2) 评论(0) 推荐(0) 编辑

2013年9月8日

摘要: 转自百度文库:委托:Public void setfunction (string s){ For (int I;i<10;i++) { …… }}创建委托:Delegate void setmain(string s);Setmain setmaintest=new setmain(setfunction);调用委托:Label.Invoke(setmain,new object[]{i.Tostring()});usingSystem;usingSystem.Threading;usingSystem.Windows.Forms;namespaceThreadTest{ public 阅读全文
posted @ 2013-09-08 08:31 Mis_Eur 阅读(277) 评论(0) 推荐(0) 编辑

导航