上一页 1 ··· 5 6 7 8 9 10 11 下一页
  2016年1月11日
摘要: declare @str varchar(100) set @str='是否严格控制' --要搜索的字符串 declare @s varchar(8000) declare tb cursor local for select s='if exists(select 1 from ['+b.name 阅读全文
posted @ 2016-01-11 17:54 苏上话 阅读(3632) 评论(0) 推荐(0) 编辑
摘要: 两句话搞定[DllImport("user32.dll", CharSet = CharSet.Auto)]private static extern int SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int y, int Width... 阅读全文
posted @ 2016-01-11 17:51 苏上话 阅读(7146) 评论(0) 推荐(0) 编辑
摘要: /// /// 读取EXCEL数据 /// /// /// public static System.Data.DataSet ExcelToDS(string Path) { s... 阅读全文
posted @ 2016-01-11 17:49 苏上话 阅读(2917) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取本机 机器名 /// /// public static string GetMachineName() { ... 阅读全文
posted @ 2016-01-11 17:48 苏上话 阅读(2189) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { //调用系统默认的浏览器 System.Diagnostics.Process.Start(http://www.baidu... 阅读全文
posted @ 2016-01-11 17:46 苏上话 阅读(1783) 评论(0) 推荐(0) 编辑
摘要: //弹出一个选择目录的对话框privatevoid btnSelectPath_Click(object sender, EventArgs e) //弹出一个选择目录的对话框 { FolderBrowserDialog path = new FolderBrowserDialog(); ... 阅读全文
posted @ 2016-01-11 17:44 苏上话 阅读(27252) 评论(0) 推荐(1) 编辑
摘要: 1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; 2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出; 3.Application.Exit 阅读全文
posted @ 2016-01-11 17:43 苏上话 阅读(3675) 评论(0) 推荐(0) 编辑
摘要: //读取文件内容(1).使用FileStream类进行文件的读取,并将它转换成char数组,然后输出。byte[] byData = new byte[100]; char[] charData = new char[1000]; public void Read() ... 阅读全文
posted @ 2016-01-11 17:39 苏上话 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1.参数 paramsValue的格式 要和 Reques.ContentType一致, 如果 contentype "application/x-www-form-urlencoded" 表单类型,那么 参数为 a=1&b=2 形式 如果 。。。 "application/json" json 类 阅读全文
posted @ 2016-01-11 17:32 苏上话 阅读(6880) 评论(0) 推荐(0) 编辑
摘要: public static string AssemblyDirectory { get { string codeBase = Assembly.GetExecutingAssembly().CodeBase; UriBuilder uri = new UriBuilder(codeBase); 阅读全文
posted @ 2016-01-11 17:30 苏上话 阅读(198) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页