- 博客(20)
- 资源 (8)
- 收藏
- 关注
转载 C# PC端读取INI文件处理
//***********************************************************************//版权所有:AnnKiny//文件名称:Form1.cs//CLR 版本:9.0//描 述://作 者:Hanlong Tu //博 客:(优快云) http://m
2015-08-28 18:32:20
531
原创 C# richTextBox 控件使用说明
查找richTextBox 字符串: 该方法是可以实现查询字符串,但多个就不成功了string s="";int index = this.richTextBox1.Find(s);if (index < 0){ MessageBox.Show("查找不到"); return;}this.richTextBox1.SelectionStart = index;thi
2013-12-03 17:44:57
1733
原创 C#WinForm与JS通讯
1、与JS基本通讯原理CS 代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows
2013-11-10 15:33:54
840
原创 C# ZIP文件的压缩和解压缩(SharpZipLib.dll)
真是折腾呀,网上虽然有不少的源码但测试几个就是不成功,经过折腾还是折腾出来了现在分享出来给大家。源码还是在网友们的基础上调整的,主要是调整源码大大小写格式。sharpziplib.dll 下载:http://pan.baidu.com/share/link?shareid=1016448925&uk=134565274&fid=3214033513首先需要在项目里引用sharp
2013-11-03 17:05:10
1406
原创 combobox绑定text与value并获取值
combobox 绑定text与value的方法:1、与数据库表绑定 //载入所有会员 sql = "select * from member"; cmd = db.GetSqlStringCommond(sql); dt = db.ExecuteDataTable(cmd);
2013-10-31 15:46:53
1402
转载 高效率的Access\MSSQL分页的SQL语句
采用Access数据库有许多优点,比如数据库无须专门的数据库空间,使用,备份,迁移也非常方便。但一旦数据量到达上万条,上十万条甚至更多的时候,ACCESS的大数据量的列表分页效率问题就出现了。用普通的Recordset方法来分页会非常非常慢。所以从SQL语句底层,找到高效率的分页方法才能优化效率,提高速度。本文不再讨论用Adodb.Recordset,和SQL语句里的NOT IN或
2013-10-31 11:49:25
3332
原创 FLASH-与JS通讯---相关
1、获取FLASH对象(兼容最好的函数)function getFlashMovieObject(movieName){ var obj; if (window.document[movieName]){ obj = window.document[movieName]; }else if (navigator.appName.indexOf("Microsoft Inte
2013-10-30 11:58:42
572
转载 C# FolderBrowserDialog和OpenFileDialog 使用 指定目录和指定文件
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication1{
2013-10-25 09:50:52
1176
转载 MSSQL-用SQL语句添加删除修改字段、一些表与字段的基本操作、数据库备份等
.用SQL语句添加删除修改字段 1.增加字段 alter table docdsp add dspcode char(200) 2.删除字段 ALTER TABLE table_NAME DROP COLUMN column_NAME 3.修改字段类型 ALTER TABLE table_name ALTER COLUMN column_name new_data_type
2013-10-20 09:48:08
1021
原创 c# sql2005(请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接) 链接代码
1、sql2005已开启远程链接且做好1433 端口的开启以及防火墙的设置。2、在安装sql2005服务端能正常链接(以下是连接符)dbConnectionString = @"Data Source=服务器名称\实例名称;Initial Catalog=数据库;Persist Security Info=True;User ID=sa帐号;Password=密码"3、但是远程链接情况
2013-10-15 14:31:56
1555
转载 WinForm窗体屏幕边缘停靠(窗体靠边吸附代码)
1、方法一using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms; namespace WZDH{ pub
2013-10-10 09:45:46
2868
1
转载 c#禁止程序多次重复运行执行
方法一:using System.Diagnostics;if (System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length > 1) { MessageBox.Show(
2013-10-09 10:41:02
1446
原创 c# 多项目(应用程序)共用一个Config配置文件
using System;using System.Collections.Generic;using System.Text;using System.Configuration;using System.Windows.Forms;using System.Diagnostics;namespace Config{ /// /// 写入【Config.Conf
2013-09-28 09:12:43
2016
转载 c#中获取cpu序列号、网卡mac地址、ip地址、硬盘序列号、登录用户名、pc类型、计算机名称、物理内存
using System;using System.Management;namespace SHJ{ /// /// Computer Information /// public class Computer { public string CpuID; public string MacAddress;
2013-09-26 09:17:28
1111
原创 C#正则表达式查找匹配循环替换内容
C#提取网页数据正则表达式二 string regstr = @"(?i)(?)[^)"; //提取td的文字 string regstr = @".+?)>(?.+?)"; //提取链接的内容 string regstr = @".+?)>(?.+?)"; //提取TD中链接的内容
2013-09-24 14:46:56
3406
转载 C#字符串操作 取文本左边 取文本右边 取文本中间 取文本中间到List集合 指定文本倒序
/// /// 取文本左边内容 /// /// 文本 /// 标识符 /// 左边内容 public static string GetLeft(string str, string s) { string temp = str.Substring(0, st
2013-09-24 11:34:27
1997
转载 C# winform程序增加自定义快捷键
C#实现快捷键(系统热键)响应在应用中,我们可能会需要实现像Ctrl+C复制、Ctrl+V粘贴这样的快捷键,本文简单介绍了它的实现,并给出了一个实现类。http://ike.126.com(1)建立一个类文件,命名为HotKey.cs,代码如下:using System;using System.Collections.Generic;using System.Runtime.Int
2013-09-23 09:16:06
1658
转载 替换SQL特殊字符 (c#)
/// /// 替换SQL特殊字符 /// /// 过滤字段 /// public static string ReplaceSQLChar(string str) { if (str == String.Empty) return String.Empty; str = str.Replace("'", "‘");
2013-09-20 10:02:33
1140
原创 wampserver下配置虚拟主机 实现多站点支持(测试通过WIN7 64)
启动wampserver服务,左键单击右下角wampserver图标,打开Apache菜单下“httpd.conf”文件;在“httpd.conf”文件最下面添加以下代码: DocumentRoot "D:/wamp/www/link" ServerName www.abc.com 3.
2013-09-20 01:17:00
1086
转载 c#设置软件开机自动运行,修改注册表
#region /// /// 开机启动项 /// /// 是否启动 /// 启动值的名称 /// 启动程序的路径 Application.ExecutablePath public static void RunWhenStart(bool Started, strin
2013-09-12 10:18:44
611
我的菜生态商城 多账号养鸡孵蛋 管理软件
2017-11-14
我爱我的菜 wx.52wdc.com 多线程管理系统
2017-10-18
我爱我的菜-徒弟注册、帐号管理软件
2017-09-29
动易ACCESS转成SQL数据库后发表文章时出现问号!!
2008-04-25
风云供求系统整修版
2008-04-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人