上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 58 下一页
摘要: 参考链接:http://blog.sina.com.cn/s/blog_5f998b5d0100ec3m.html 阅读全文
posted @ 2012-05-13 01:22 scgw 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1、用MySQLDriverCS连接MySQL数据库先下载和安装MySQLDriverCS,地址:http://sourceforge.net/projects/mysqldrivercs/在安装文件夹下面找到MySQLDriver.dll,然后将MySQLDriver.dll添加引用到项目中注:我下载的是版本是 MySQLDriverCS-n-EasyQueryTools-4.0.1-DotNet2.0.exeusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data; 阅读全文
posted @ 2012-05-12 19:46 scgw 阅读(537) 评论(0) 推荐(0) 编辑
摘要: “System.Web.Security.SqlMembershipProvider”要求一个与架构版本“1”兼容的数据库架构。但是,当前的数据库架构与此版本不兼容。您可能需要使用 aspnet_regsql.exe (在 framework 安装目录中提供)安装一个兼容的架构,或者将提供程序升级到一个较新的版本。说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息解决方案:在自己的数据库里为aspnet_SchemaVersions表初始化数据就好了。INSERT INTO [dbo].[aspnet_SchemaVer 阅读全文
posted @ 2012-04-18 16:58 scgw 阅读(286) 评论(0) 推荐(0) 编辑
摘要: IE6环境下,它 -- 支持PNG-24背景循环 | 支持定位 | 支持focus | 支持hover | 支持做背景加链接正常 | 支持正常应用zoom ...点击这里查看演示DEMO , 点击这里下载DEMO 。详细文档见http://dillerdesign.com/experiment/DD_belatedPNG/。这里就不提供翻译了,哪位大大有时间有精力就来个翻译文档吧。08年末这东西刚出来的时候国内就有人发过这个方法,但不知道为什么,没引起什么“效应”,很多人还是在用上面说的“更具局限性”的方法。使用方法很简单,首先下载调用JS0.0.8a.js (未压缩版本, ~12Kb)0.0 阅读全文
posted @ 2012-04-17 20:33 scgw 阅读(188) 评论(0) 推荐(0) 编辑
摘要: //流浪的风 自动启动 20120412OnBnClickedButtonStart();//从任务栏中隐藏窗体ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW);//隐藏窗体WINDOWPLACEMENT wp;wp.length=sizeof(WINDOWPLACEMENT);wp.flags=WPF_RESTORETOMAXIMIZED;wp.showCmd=SW_HIDE;SetWindowPlacement(&wp);//GetWindowPlacement(&m_wp); //恢复时用//流浪的风 自动启动 201204 阅读全文
posted @ 2012-04-12 12:20 scgw 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 修改注册表后不重启计算机并生效。const int WM_SETTINGCHANGE = 0x001A; const int HWND_BROADCAST = 0xffff;IntPtr result1;public enum SendMessageTimeoutFlags : uint { SMTO_NORMAL = 0x0000, SMTO_BLOCK = 0x0001, SMTO_ABORTIFHUNG = 0x0002, SMTO_NOTIMEOUTIFNOTHUNG = 0x0008 } [DllImport("user32.dll", SetLastError 阅读全文
posted @ 2012-04-09 22:37 scgw 阅读(581) 评论(0) 推荐(0) 编辑
摘要: c#中禁用和开启网卡using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Management;using System.Collections;namespace NetWorkControl{ public partial class Form1 : Form { public Form1() ... 阅读全文
posted @ 2012-04-09 14:43 scgw 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 修改ip,子网掩码,网关,dns。"网络连接名"是你机器上网络属性里看到的连接名,把下面改成自己的连接名。netsh interface ip set address "网络连接名" static192.168.0.88 255.255.255.0192.168.0.1 1netsh interface ip set dns "网络连接名" static 202.216.224.66netsh interface ip add dns "网络连接名" 202.216.224.67 如果要改成动态分配ip和自动获得d 阅读全文
posted @ 2012-04-09 09:40 scgw 阅读(855) 评论(0) 推荐(0) 编辑
摘要: [DllImport("User32.dll ", EntryPoint = "SetParent")]private static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);[DllImport("user32.dll ", EntryPoint = "ShowWindow")]public static extern int ShowWindow(IntPtr hwnd, int nCmdShow);private void 阅读全文
posted @ 2012-04-07 10:40 scgw 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 找到对应的cpl,启用一新的线程打开,比如System.Diagnostics.Process.Start("RunDLL32.exe","shell32.dll,Control_RunDLL timedate.cpl"); 打开对应的“日期和时间 属性”窗口。 其他的窗口对应如下: 辅助选项 模块:access.cpl 命令:rundll32.exeshell32.dll,Control_RunDLLaccess.cpl,,5 结果:显示辅助选项/常规。 命令:rundll32.exeshell32.dll,Control_RunDLLaccess.c 阅读全文
posted @ 2012-04-07 07:18 scgw 阅读(2515) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 58 下一页