刷新图层: pMap.PartialRefresh(esriViewGeography, pLayer, null); 刷新所有图层: pMap.PartialRefresh(esriViewGeography, null, null); 刷新所选择的对象: pMap.PartialRefresh(esriViewGeoSelection, null, null); 刷新标注... Read More
posted @ 2009-01-14 11:05 温景良(Jason) Views(877) Comments(0) Diggs(0)
Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> //获得属性值 string ManagerId = dgvK001.Rows[e.RowIndex].Cells[0].Va... Read More
posted @ 2009-01-12 09:55 温景良(Jason) Views(1332) Comments(0) Diggs(0)
在设计winform的时候可能会需要进行动态加载窗体到主窗体进行显示.但是简单的写成 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->frmMain frm = new frmMain(); frm.Parent = panel1; frm.... Read More
posted @ 2009-01-06 08:41 温景良(Jason) Views(477) Comments(0) Diggs(1)
加密存储过程加上with encryption create proc sel (@id int,@name varchar(100)) with encryption as insert test (id,name)values(@id,@name) 下面的存贮过程用来解密 create PROCEDURE sp_decrypt(@objectname varchar(50)... Read More
posted @ 2009-01-05 16:29 温景良(Jason) Views(694) Comments(0) Diggs(0)
--01.get all database name SELECT DBNAME = DB_NAME(s_mf.database_id) INTO #DN FROM sys.master_files s_mf WHERE s_mf.state = 0 and -- ONLINE HAS_DBACCESS(DB_NAME(s_... Read More
posted @ 2009-01-05 08:24 温景良(Jason) Views(413) Comments(0) Diggs(0)
/* EXEC E_ExcelToDatabase 'c:\题库.xls','[exam$]','where nidnull','*' CreateTime:2007-11-30 09:00 Author:wenjl explain:将EXCEL的数据倒入到数据库 */ CREATE PROC E_ExcelToDatabase @Path NVarChar(200), @Table... Read More
posted @ 2008-12-31 14:54 温景良(Jason) Views(475) Comments(0) Diggs(0)
2008年是我的本命年,呵呵,明天就过去了,很快2009年的钟声就要敲起来了. 今天总结了一下,2008年学的东西还真不少,但是记住又有多少呢.列一下清单: 1.Arcims学习开发 2.Arcengine学习开发 3.Excel学习开发 4.winform开发 5.ajax开发 ... Read More
posted @ 2008-12-31 14:08 温景良(Jason) Views(310) Comments(0) Diggs(0)
在开始之前,先熟悉几个类及部分属性、方法:CSharpCodeProvider、ICodeCompiler、CompilerParameters、CompilerResults、Assembly。 一、CSharpCodeProvider 提供对C#代码生成器和代码编译器的实例的访问。如果要动态生成VB代码,可以使用VBCodeProvider。 Cre... Read More
posted @ 2008-12-31 11:31 温景良(Jason) Views(5073) Comments(2) Diggs(1)
根据自己对dsoframer控件的学习,想把dsoframer控件进行简单的包装为C#的usercontrol,大体需要作如下:1.使用前注册该dsoframer控件,我把该dso控件当作嵌入资源,用学习笔记1中的方法注册即可 CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHig... Read More
posted @ 2008-12-29 15:22 温景良(Jason) Views(1484) Comments(1) Diggs(0)
Worksheet..::.PrintOut ():打印工作表。 参数: From 类型:System..::.Object 要打印的第一页的页码。如果省略此参数,则打印从第一页开始。 To 类型:System..::.Object 要打印的最后一页的页码。如果省略此参数,则打印完最后一页后停止打印。 Copies 类型:System..::.Object 要打印的份数。如果省略此参数,... Read More
posted @ 2008-12-29 11:29 温景良(Jason) Views(790) Comments(0) Diggs(0)
由于微软再一次推迟了.Net版的OLE Container Control的发布(2005版本叫ActiveDocumentControl),使我们几乎没有太多的办法来完成这个任务(你可以利用Visual C++来完成你的工作,不过该实现对技术的要求太高,大部分人不具备这个能力,因此只好作罢,最好在Visual C++基础上开发一个控件,在别的环境下调用,如果你能做这个工作,请... Read More
posted @ 2008-12-25 17:16 温景良(Jason) Views(644) Comments(0) Diggs(0)
使用AxWebBrowser或者WebBrowser的方法将Office嵌入我们的.Net系统问题有几个,1是WebBrowser控件是一个比较重的控件,2是通过WebBrowser去控制Office如果出现问题没有办法进行调试与判断,也无法修改,3是Office对应的菜单没有办法控制。为此我们决定需求新的解决方案,使用微软提供的dsoFramer控件例子,这个例子使用VC++编写,本身... Read More
posted @ 2008-12-25 17:09 温景良(Jason) Views(1666) Comments(3) Diggs(0)
使用SelectionChanged事件 private void axMapControl_OnSelectionChanged(object sender, EventArgs e) { if (iMapAction == 1) { //---------------------------------------Ident... Read More
posted @ 2008-12-25 17:06 温景良(Jason) Views(1968) Comments(1) Diggs(0)
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->declare @sql1 nvarchar(2500) set @sql1=' select top 1 @test1=column1,@test2=column1 from table1' e... Read More
posted @ 2008-12-25 16:59 温景良(Jason) Views(348) Comments(0) Diggs(0)
先定义一个热键类using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Windows.Forms;namespace ExcelReportDesigner{ class WinHotKey { public WinHotKey() { } //如果函数执行成功,返回值不为0。 //如果函数执行失败,返回值为0。要得到扩展错误... Read More
posted @ 2008-12-25 16:56 温景良(Jason) Views(585) Comments(2) Diggs(0)
Office web component learning ---- Spreadsheet learning 一、Spreadsheet 对象 说明:表示电子表格的容器。 ****************** 属性: ******************* 1、ActiveCell:返回代表活动单元格的Range只读对象。 2、ActiveSheet:返回代表活动工作表的WorkSheet只读... Read More
posted @ 2008-12-24 16:33 温景良(Jason) Views(1243) Comments(1) Diggs(0)
WinForm下窗体权限设计 一、 描述 管理员通过控制窗体中的某个控件的Enable和visable来达到应用程序的权限控制 二、 设计思路 (一) 读取控件 将menustrip菜单选项绑定到treeview中,根据菜单选项的名称跟窗体名称相等,去 遍历出窗体中的所有form、tabctrol、button、toolstripbutton、等, 结果如下 (二) 保存控件 将... Read More
posted @ 2008-12-10 22:22 温景良(Jason) Views(2935) Comments(4) Diggs(0)
备份与恢复数据库的存储过程 这种方式感觉实现起来也不错,我是使用这种方式来完成数据库备份还原的功能的。 需要指出下面这些存储过程是在网上搜索到的。谢谢代码的提供者。在此转载 利用T-SQL语句,实现数据库的备份与还原的功能 体现了SQL Server中的四个知识点: ... Read More
posted @ 2008-12-10 22:19 温景良(Jason) Views(1244) Comments(0) Diggs(0)
下面是用AE创建气泡式提示框的方法: 1、VB.Net源码 ''' ''' 创建文本提示框 ''' ''' 提示框标识的位置X坐标 ''' 提示框标识的位置Y坐标 ''' 提示框中显示的文本 ''' 提示框箭头指向的点 ''' 包含提示框的graphicscontainer ''' ''' Public Function Creat... Read More
posted @ 2008-12-10 17:19 温景良(Jason) Views(1729) Comments(2) Diggs(0)
今天在单位做图层合并的工作,刚开始找不到相应的接口,现在解决了,放出来与大家共享 本程序实现了对具有同类型数据结构的shapefile的图层合并,并在MapControl中显示. ILayer pLayer; IFeatureLayer pFeatureLayer; IFeatureClass pFeatureClass;... Read More
posted @ 2008-12-10 15:09 温景良(Jason) Views(2414) Comments(2) Diggs(0)