会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
敲代码带
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
2018年1月19日
线程间操作无效
摘要: 1.窗体构造函数中写Control.CheckForIllegalCrossThreadCalls =false; 2.Invoke(new MethodInvoker(delegate() { //do something... }));
阅读全文
posted @ 2018-01-19 09:25 敲代码带
阅读(246)
评论(0)
推荐(0)
编辑
2018年1月9日
自动生成编号(B开头后跟6位,数据库查询不重复)
摘要: 1 private string GetAccountNo() 2 { 3 try 4 { 5 string shortName="B"; 6 string latestAccountNO = shortName + "000001"; ...
阅读全文
posted @ 2018-01-09 16:41 敲代码带
阅读(1543)
评论(3)
推荐(0)
编辑
判断字符串是否能转化为整形
摘要: int sNum = 0; string s = "100"; int Result = 0; int.TryParse(s, out Result) //转换失败Result为0 转换成功Result为结果值 if(Result!=0) { sNum=Result; }
阅读全文
posted @ 2018-01-09 16:20 敲代码带
阅读(569)
评论(1)
推荐(0)
编辑
上一页
1
2
3
4
5
公告