![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#WinForm
PowerFY
这个作者很懒,什么都没留下…
展开
-
获取网络日期及时间
WebClient wc = new WebClient(); string html = wc.DownloadString("http://time.tianqi.com/"); int begin = html.IndexOf("北京现在时间:"); string dateTime= html.Substring(原创 2016-08-17 12:44:40 · 1786 阅读 · 0 评论 -
An attempt was made to set a report parameter that is not defined in this report
An attempt was made to set a report parameter that is not defined in this reportreportView 使用两张rdlc文件时,第二张rdlc有自定义变量时出出错 出现此问题时,百思不得其解,明明定义了,还说我没定义经过百度发现外国佬同样遇到了这样的问题http://www.sqlserverce原创 2016-10-19 09:11:27 · 1155 阅读 · 1 评论 -
oralce中如把Number类型转换成int类型
用Convert.Toint32例:patient.Age = Convert.ToInt32( row["AGE"]); patient.Age C#中 为int;AGE 在Oracle 中为number来源于1、int适合简单数据类型之间的转换,C#的默认整型是int32(不支持bool型);2、int.Parse(原创 2016-10-30 10:24:49 · 8686 阅读 · 0 评论 -
dataGridView
不允许dataGridView排序默认情况下dataGridView 是允许排序的,也就是说点击列标题的时候排序整个dataGridView,但是在很多特殊情况下,我们不希望它进行排序。针对每一列的SortMode设置为NotSortTable,对于绑定的数据集同样适用。也可以写如下代码实现 //不允许排序 for (int i = 0; i转载 2016-11-23 17:37:35 · 567 阅读 · 0 评论