我们在弄winfrom的时候可能经常会碰到,当光标移动到某个输入框的时候输入法自动变成全角的了。因此这个就出现了。[hide]//半角转换为全角函数function ToDBC(txtstring) { var tmp = ""; for (var i = 0; i 65248 && str.ch....
分类:
其他好文 时间:
2014-12-02 16:30:13
阅读次数:
112
using System.IO;有一个数据库手机号码的txt文件,格式是 : 13500000000-13560000000-中国移动查询结果: 湖南移动[邵阳]文件夹选择对话框 FolderBrowserDialog;string[] Directory.GetFiles(路径,类型,选项) //...
分类:
移动开发 时间:
2014-12-01 15:38:46
阅读次数:
171
在做Winfrom程序时,有时会遇到一个异常,可是这个异常不知道在什么地方发生的,程序会自动关闭,然后什么也没有了,在网上找到了一种方法,用来捕捉这种异常。出现这种情况的原因是在程序中某些地方考虑不周全,有异常的情况没有考虑到,但是CLR不会在出错时给出提示(注:有些错误没有捕捉的话会自动弹出错误框...
分类:
其他好文 时间:
2014-12-01 15:38:40
阅读次数:
340
记得现在已经不在学习winfrom啦,可是我们为什么还是学习啦,我感觉就是帮助我们往下一个层次进发啦,因为从控制台直接开始进入webform的学习,我们很难接受啦,估计效率也不高啦,所以我们就简单的学习一下winfrom啦,感觉今天学习起来比console简单,或许是因为我们之前在学校接触过...
windows以前的界面用C语言写,后来有了很多种选择了。。MFC,winFrom等等。。。。 现在微软想要搞多平台统一了哇,win10桌面、平板、手机都是一个系统,还能应用通用。 有幸在工作中学习到wpf,在比较了玩具winFr...
只启动一个exe方法: 1 using System; 2 using System.Collections.Generic; 3 using System.Runtime.InteropServices; 4 using System.Windows.Forms; 5 6 namespace S....
private void Form2_Load(object sender, EventArgs e)
{
CreateMenu();
}private void CreateMenu()
{
//定义菜单条
Bar bar = new Bar("Menu Bar");
bar.MenuBar = true;
bar.Stretch = true;
...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System....
.Net 小型软件自动更新库(SimpAutoUpdater)http://www.fishlee.net/soft/simple_autoupdater/usage.html下载地址:https://github.com/iccfish/FSLib.App.SimpleUpdater比较吸引的就是...