会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
x_蜡笔小新
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
18
下一页
2018年3月30日
Unicode转字符串
摘要: /// /// Unicode转字符串 /// /// The to string. /// Unicode. public static string UnicodeToString(this string unicode) { return System.Text.Re...
阅读全文
posted @ 2018-03-30 16:50 会弹猫的吉他
阅读(1092)
评论(0)
推荐(0)
2018年3月28日
C# 调用Windows图片查看器
摘要: /// /// 查看原图 /// /// private void ViewOrignalImage(Image image) { //查看原图 try { var tempFilePath = string...
阅读全文
posted @ 2018-03-28 09:23 会弹猫的吉他
阅读(972)
评论(0)
推荐(0)
2018年3月21日
C# 防止窗体闪烁
摘要: 将以下代码块加在父窗体中的任意位置
阅读全文
posted @ 2018-03-21 11:38 会弹猫的吉他
阅读(549)
评论(0)
推荐(0)
2018年3月14日
为DataGridView增加鼠标滚轮功能
摘要: #region 鼠标滚动 [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "WindowFromPoint")] static extern IntPtr WindowFromPoint(Point pt); private void dgv_MouseEn...
阅读全文
posted @ 2018-03-14 10:08 会弹猫的吉他
阅读(350)
评论(0)
推荐(0)
2018年2月27日
c#四舍五入取整
摘要: Math.Round(3.45, 0, MidpointRounding.AwayFromZero)
阅读全文
posted @ 2018-02-27 14:50 会弹猫的吉他
阅读(370)
评论(0)
推荐(0)
2018年2月24日
C#窗口禁止移动的方法
摘要: 1,窗口属性中有locked属性,设置为true。 (在自己进行编码的时候并没能找到这个属性,貌似只能在窗口设计时进行设置,故此方法无可控性) 2,窗口属性中有FormBorderStyle属性,设置为none; 或者在代码中设置:Form1.ActiveForm.FormBorderStyle = FormBorderStyle.None; 此时为无边框风格,窗口显灰,不可缩放不可移动...
阅读全文
posted @ 2018-02-24 10:15 会弹猫的吉他
阅读(4070)
评论(0)
推荐(0)
2018年2月22日
ashx图片上传接收
摘要: 发送数据流方法 /// /// PostBinaryData /// /// 要发送的 url 网址 /// 要发送的数据流 /// public string PostBinaryData(string url, byte[] bytes) { //下面是测试例子 //string url = "http://www.test.com/test.ashx"; //strin...
阅读全文
posted @ 2018-02-22 17:16 会弹猫的吉他
阅读(1004)
评论(0)
推荐(0)
2018年2月12日
progressBar显示百分比
摘要: this.lab_AllFiles.Text = progressBarAllFile.Value * 100 / progressBarAllFile.Maximum + "%";
阅读全文
posted @ 2018-02-12 09:09 会弹猫的吉他
阅读(269)
评论(0)
推荐(0)
2018年2月7日
Newtonsoft.Json 去掉\r\n
摘要: itemKindList.ToString(Newtonsoft.Json.Formatting.None)
阅读全文
posted @ 2018-02-07 11:18 会弹猫的吉他
阅读(1123)
评论(0)
推荐(0)
2018年2月5日
C#Listview添加数据,选中最后一行,滚屏
摘要: this.listView.Items.Add(lvi); this.listView.EnsureVisible(this.listView.Items.Count - 1); this.listView.Items[this.listView.Items.Count - 1].Checked = true;
阅读全文
posted @ 2018-02-05 14:15 会弹猫的吉他
阅读(339)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
18
下一页
公告