上一页 1 2 3 4 5 6 ··· 11 下一页

2013年6月22日

c# 字体安装

摘要: [DllImport("kernel32.dll", SetLastError = true)] static extern int WriteProfileString(string lpszSection, string lpszKeyName, string lpszString); [DllImport("user32.dll")] public static extern int SendMessage(int hWnd, // handle to destination window uint Msg, // me... 阅读全文

posted @ 2013-06-22 18:34 gwazy 阅读(531) 评论(0) 推荐(0) 编辑

2013年6月20日

简单的文件版本更新

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Net;namespace WinUpVer{ public partial class FrmMain : Form { public FrmMain() { ... 阅读全文

posted @ 2013-06-20 18:07 gwazy 阅读(308) 评论(0) 推荐(0) 编辑

c# 压缩文件

摘要: 递归实现压缩文件夹和子文件夹。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.IO.Compression;using System.Collections;using System.Runtime.Serialization;using System.Runtime.Serialization.Formatters.Binary;namespace CommonBaseInfo{ public class Zip ... 阅读全文

posted @ 2013-06-20 17:16 gwazy 阅读(403) 评论(0) 推荐(0) 编辑

2013年6月10日

winform 使用 webclient 上传

摘要: public void ProcessRequest(HttpContext context) { HttpPostedFile file = context.Request.Files[0]; file.SaveAs(context.Server.MapPath("~/uploadimages/") + file.FileName); } string strurl = "http://localhost/Provider/HandlerUpImage.ashx"; ... 阅读全文

posted @ 2013-06-10 09:26 gwazy 阅读(512) 评论(0) 推荐(0) 编辑

winform 调用 ashx

摘要: WebClient mywebclient = new WebClient(); byte[] cheklist = mywebclient.DownloadData(severurl + "/Provider/HandlerWinForm.ashx?deptid=" + Program.InstitutionID + "&method=insertadminlog"); string strcheck = Encoding.ASCII.GetString(cheklist); WebClient wc=new WebClient (); Str 阅读全文

posted @ 2013-06-10 09:08 gwazy 阅读(4300) 评论(2) 推荐(0) 编辑

webservice 使用

摘要: [WebMethod] public List<EntityAdmin_Dept> GetAdmin_DeptChild(string InstitutionID) { DataCondition<EntityAdmin_Dept.Field> conditionIn = new DataCondition<EntityAdmin_Dept.Field>(); conditionIn.Add("{0}='" + InstitutionID + "'", EntityAdmin_Dept.Field.De 阅读全文

posted @ 2013-06-10 09:04 gwazy 阅读(191) 评论(0) 推荐(0) 编辑

2013年6月9日

导出 sqlsever 到access

摘要: SE [JjwDB]GO/****** Object: StoredProcedure [dbo].[p_exporttb] Script Date: 06/09/2013 14:12:07 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO/*--数据导出Access导出数据库中的表到Access如果文件不存在,将自动创建文件如果表存在,将覆盖现有的表支持导出所有的数据类型--邹建 2004.04(引用请保留此信息)--*//*--调用示例p_exporttb @s_tbname='sysobjects',@path=&# 阅读全文

posted @ 2013-06-09 15:17 gwazy 阅读(450) 评论(0) 推荐(0) 编辑

2013年6月3日

win8 sqlserver2008 附加数据库错误: 5120

摘要: 今天分离附加数据库,分离出去然后再附加,没有问题。但是一把.mdf文件拷到其它文件夹下就出错,错误如下:无法打开物理文件 "E:\db\homework.mdf"。操作系统错误 5:"5(拒绝访问。)"。 (Microsoft SQL Server,错误: 5120)问了下朋友,朋友说找到.mdf文件改文件的安全权限。搞了半天才明白,原来是找到.mdf文件,右键->属性->安全->选择当前用户->编辑->完全控制。如果还出现这种情况,记得把.log文件的安全权限也 阅读全文

posted @ 2013-06-03 15:04 gwazy 阅读(307) 评论(0) 推荐(0) 编辑

2012年12月8日

vpn 连接

摘要: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters] "ProhibitIPSec"=dword:00000001 我的xp,win8 vpn 连接不上,都是改注册表如上后正常了的。 阅读全文

posted @ 2012-12-08 18:42 gwazy 阅读(59) 评论(0) 推荐(0) 编辑

2012年11月26日

nvarchar 删除 tab 空格

摘要: update PersonInfo set PersonFamilyInf=REPLACE(PersonFamilyInf, CHAR(13) , '') update PersonInfo set PersonFamilyInf=REPLACE(PersonFamilyInf, CHAR(10) , '') update PersonInfo set PersonFamilyInf=REPLACE(PersonFamilyInf, CHAR(9) , '') 删除 回车,换行,tab 空格, 阅读全文

posted @ 2012-11-26 17:26 gwazy 阅读(199) 评论(0) 推荐(0) 编辑

2012年11月19日

easyui 合并单元格

摘要: $(function () { $('#datalist').datagrid({ title: '三项岗位人员统计', iconCls: 'icon-save', singleSelect: true, width: 700, height: 350, nowrap: false, fit: true, striped: false, url: '/Provider/HandlerQ... 阅读全文

posted @ 2012-11-19 21:10 gwazy 阅读(7912) 评论(0) 推荐(2) 编辑

2012年10月20日

c#实现锁屏及禁止键盘和鼠标

摘要: 1.要实现锁定系统不让别人用,可以调用系统锁定API函数来实现//引入API函数 [DllImport("user32 ")] public static extern bool LockWorkStation();//这个是调用windows的系统锁定在需要的时候直接写LockWorkStation();就可以啦!不信试试看!2.API函数锁定键盘及鼠标[DllImport("user32.dll")] static extern void BlockInput(bool Block);需要的时候就直接写:BlockInput(true);//锁定鼠标 阅读全文

posted @ 2012-10-20 18:37 gwazy 阅读(3394) 评论(0) 推荐(0) 编辑

2012年10月8日

c# 摄像头截图

摘要: using System;using System.Runtime.InteropServices;using System.Drawing;using System.Drawing.Imaging;namespace Video{/// <summary>/// 一个控制摄像头的类/// </summary>public class VideoWork{private const int WM_USER = 0x400;private const int WS_CHILD = 0x40000000;private const int WS_VISIBLE = 0x10 阅读全文

posted @ 2012-10-08 19:04 gwazy 阅读(897) 评论(0) 推荐(0) 编辑

2012年10月7日

微软语音提示

摘要: SpVoice Voice = new SpVoice(); SpeechVoiceSpeakFlags SpFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync; Voice.Speak("欢迎您!", SpFlags); 阅读全文

posted @ 2012-10-07 15:38 gwazy 阅读(204) 评论(0) 推荐(0) 编辑

2012年10月6日

c# 线程操作

摘要: http://www.cnblogs.com/miniwiki/tag/C%23%20%E7%BA%BF%E7%A8%8B/ 阅读全文

posted @ 2012-10-06 11:33 gwazy 阅读(155) 评论(0) 推荐(0) 编辑

2012年10月4日

easyui rowspan 为空或者不是对象

摘要: 检查 { field: 'Holiday_ID', title: '编号', width: 120, align: 'center' }, { field: 'Holiday_day', title: '日期', width: 120, align: 'center' },是否多了逗号。 阅读全文

posted @ 2012-10-04 21:03 gwazy 阅读(1569) 评论(0) 推荐(1) 编辑

2012年10月3日

jquery easyui 文档资料

摘要: http://www.jeasyui.com/documentation/# 阅读全文

posted @ 2012-10-03 22:29 gwazy 阅读(138) 评论(0) 推荐(0) 编辑

2012年6月19日

更改SQL Server 2005 端口号

摘要: SQLServer的默认TCP端口是1433,UDP端口是1434。2005连接字符串为Provider=SQLNCLI.1;PersistSecurityInfo=True;UserID=****;Password=**;InitialCatalog=tablename;DataSource=202.000.000.000.http://blog.163.com/wang_1980_ww/blog/static/11114105201022911284961/ 阅读全文

posted @ 2012-06-19 17:51 gwazy 阅读(196) 评论(0) 推荐(0) 编辑

2012年6月17日

未能获得数据库 'MODEL' 上的排它锁。请稍后再尝试该操作。CREATE DATABASE 失败。

摘要: 编辑器加载中...Question:SQL 2000报错信息“未能获得数据库 'MODEL' 上的排它锁。请稍后再尝试该操作。CREATE DATABASE 失败。未能创建所列出的某些文件名。请检查前面的错误信息。”Answers:查询分析器执行 declare @sql varchar(100) while 1=1 begin select to... 阅读全文

posted @ 2012-06-17 15:17 gwazy 阅读(270) 评论(0) 推荐(0) 编辑

2012年4月24日

不错的下载网站。

摘要: http://xidong.net/ 阅读全文

posted @ 2012-04-24 13:52 gwazy 阅读(174) 评论(0) 推荐(0) 编辑

2012年1月13日

山西高速公路规划图

摘要: 阅读全文

posted @ 2012-01-13 09:12 gwazy 阅读(4783) 评论(0) 推荐(0) 编辑

2012年1月12日

操作excel 不错的类库

摘要: http://tonyqus.sinaapp.com/ 阅读全文

posted @ 2012-01-12 17:41 gwazy 阅读(220) 评论(0) 推荐(0) 编辑

2011年8月26日

extjs xtype 类型

摘要: xtypeClass基本组件:boxExt.BoxComponent具有边框属性的组件buttonExt.Button按钮colorpaletteExt.ColorPalette调色板componentExt.Component组件containerExt.Container容器cycleExt.CycleButtondataviewExt.DataView数据显示视图datepickerExt.DatePicker日期选择面板editorExt.Editor编辑器editorgridExt.grid.EditorGridPanel可编辑的表格gridExt.grid.GridPanel表格p 阅读全文

posted @ 2011-08-26 13:38 gwazy 阅读(279) 评论(0) 推荐(0) 编辑

extjs iframe ie中加载和渲染速度慢

摘要: 大家有没有好点的解决方法啊,在firefox 和火狐中药好点。 阅读全文

posted @ 2011-08-26 12:48 gwazy 阅读(1013) 评论(0) 推荐(0) 编辑

2011年8月16日

extjs4 中汉字显示不好看存在的问题

摘要: .x-tab-default-topbutton,.x-tab-default-top.x-tab-inner{height:13px;line-height:13px;font-family:微软雅黑;font-size:12px;}是使用字体的问题,换个字体就好多了,建议把字体改大点。 阅读全文

posted @ 2011-08-16 16:49 gwazy 阅读(465) 评论(0) 推荐(0) 编辑

2011年6月1日

easyui juery 使用中发现的问题

摘要: 1 官方提供的代码在 vs2010中发布后无法使用,为了安全限制对 扩展名为json访问。2,使用json 格式中 必须使用双引号,单引号格式的json 格式不识别, 3 分页中后台可以通过 string now_page = context.Request["page"]; string now_rows=context.Request["rows"]; context.Request["sort"] context.Request["order"]; 阅读全文

posted @ 2011-06-01 11:27 gwazy 阅读(411) 评论(0) 推荐(1) 编辑

2011年1月14日

ASP.NET MVC 教程

摘要: http://msdn.microsoft.com/zh-cn/dd327597.aspx http://hyipaying.com/article/asp.net/20110105/asp.net-mvc3-instance-add-update-delete2.html 阅读全文

posted @ 2011-01-14 16:44 gwazy 阅读(288) 评论(0) 推荐(0) 编辑

2011年1月8日

chrome 比较好用的插件

摘要: https://chrome.google.com/extensions/detail/kjdehhkgdgjcekacdccoflccmhbkefce?hl=zh-cn 阅读全文

posted @ 2011-01-08 09:51 gwazy 阅读(419) 评论(0) 推荐(0) 编辑

2010年12月28日

一个简单的页面跳转

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--packagedemo.test;importandroid.app.Activity;importandroid.content.Intent;importandroid.os.Bundle;importandroid.view.View;importandroid.widget.Button;publicclasstestmainextendsActivity{/**Calledwhenthe 阅读全文

posted @ 2010-12-28 19:23 gwazy 阅读(274) 评论(0) 推荐(0) 编辑

Android2.2 API 中文文档

摘要: http://www.cnblogs.com/over140/ 阅读全文

posted @ 2010-12-28 11:23 gwazy 阅读(198) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 11 下一页

导航