上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 1、首先在SL项目中添加一个抽象类ContextMenu.cs文件,代码如下: [csharp] view plain copy print ? using System; using System.Net; using System.Windows; using System.Windows.Co 阅读全文
posted @ 2022-07-29 09:20 devgis 阅读(248) 评论(0) 推荐(0) 编辑
摘要: arcgis中创建图元(Graphic)对象 using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Windows.Controls; using System 阅读全文
posted @ 2022-07-27 14:30 devgis 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1、属性查询 [javascript] view plain copy print? on(dom.byId("query"), "click", function(event){ map.graphics.clear(); var name = dom.byId("name").value; va 阅读全文
posted @ 2022-07-27 14:24 devgis 阅读(593) 评论(0) 推荐(0) 编辑
摘要: JS判断客户端是手机还是PC的2个代码 投稿:junjie 字体:[增加 减小] 类型:转载 时间:2014-04-12 我要评论 Javascript 判断客户端是否为 PC 还是手持设备,有时候项目中需要用到,很方便的检测,源生的哦,方法一共有两种 1、第一种: 复制代码代码如下: functi 阅读全文
posted @ 2022-07-27 14:18 devgis 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 经常需要使用客户端脚本调用net的WebService,比较常用的是在ScriptManager脚本管理器的环境下使用回调调用WebService的方法,可是这些必须在aspx的页面中进行,难免有些限制。 jQuery库是我们比较常用的JavaScript库,入门简单,功能强大,对Ajax的支持比较 阅读全文
posted @ 2022-07-27 14:17 devgis 阅读(120) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Data; using System.Reflection; namespace jdrz.HumanIdentify { public class Helper { /// < 阅读全文
posted @ 2022-07-27 14:08 devgis 阅读(1585) 评论(0) 推荐(0) 编辑
摘要: 要用到C#的编译器、反射功能,自己瞧着去吧 using System; using Microsoft.CSharp; using System.CodeDom.Compiler; using System.Reflection; public class Example { static void 阅读全文
posted @ 2022-07-27 14:03 devgis 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 方法一: 1.新建Visual C++类型的Win32项目 C语言的函数定义如下: extern "C" __declspec(dllexport) int fnTestWin32(void); 实现如下 extern "C" __declspec(dllexport) int fnTestWin3 阅读全文
posted @ 2022-07-27 11:19 devgis 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 在C#调用C++的DLL简析(一)——生成非托管dll 2013-09-05 21:37:29 标签:C++ C# 非托管C++ 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://joeyliu.blog.51cto.com/364 阅读全文
posted @ 2022-07-27 11:19 devgis 阅读(4077) 评论(0) 推荐(1) 编辑
摘要: 方法一: 1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中; 2、在前台写一个js函数,内容为document.getElementById("btn1").click(); 3、在前台或后台调用js函数,激发click事件,等于访问后台c#函数; 点击Click后,会引 阅读全文
posted @ 2022-07-27 11:17 devgis 阅读(692) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Data; using System.Data.SqlClient; namespace Bases { /// <summary> /// Summary description for ExcelClass. /// </summary> p 阅读全文
posted @ 2022-07-27 11:14 devgis 阅读(202) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 导出数据到CSV文件 /// </summary> /// <param name="dtExportTable">需要导出的datatable</param> /// <param name="dicColumnsInfo">导出的列字典,key datable 阅读全文
posted @ 2022-07-27 11:09 devgis 阅读(366) 评论(0) 推荐(0) 编辑
摘要: protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); System.Drawing.Drawing2D.GraphicsPath shape = new System.Drawing.Drawing2D.Graphi 阅读全文
posted @ 2022-07-27 10:37 devgis 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 不同的状态对应不同的操作,DataGrid中最后一列为操作列,里面是Button控件。希望点击Button后执行对应的操作,但是设置Button的 Command="{Binding VideoOperationCommand}"后触发不了操作。 XAML代码如下: <DataGrid ItemsS 阅读全文
posted @ 2022-07-27 10:36 devgis 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: C#的WEBBROWSER与JS交互小结 时间: 2014-12-31 08:10 / 围观: 30 / 评论数:0 条 / 分类:脚本编程 本文实例总结了C#的WEBBROWSER与JS交互的方法。分享给大家供大家参考。具体实现方法如下: 一、实现WebBrowser内部跳转,阻止默认打开IE 1 阅读全文
posted @ 2022-07-27 10:36 devgis 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 面向切面编程(AOP) AOP(Aspect-Oriented Programming,面向方面编程),可以说是OOP(Object-Oriented Programing,面向对象编程)的补充和完善。OOP引入封装、继承和多态性等概念来建立一种对象层次结构,用以模拟公共行为的一个集合。当我们需要为 阅读全文
posted @ 2022-07-27 10:29 devgis 阅读(349) 评论(0) 推荐(0) 编辑
摘要: internal void InsertExcelChart() { Word.InlineShape ilsChartObject; Word.Selection sel; object oClassType = "Excel.Chart.8"; object oFileName = string 阅读全文
posted @ 2022-07-26 10:26 devgis 阅读(264) 评论(0) 推荐(0) 编辑
摘要: private void Form2_Load(object sender, EventArgs e) { int rowwidth = 20; int columnwidth = 100; int startx =0; int starty = 0; int rowcount = 1000; in 阅读全文
posted @ 2022-07-26 10:18 devgis 阅读(371) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Runtime.InteropServices; using System.Management; //using System.Management.Instrumentation; using System.Collections.Gener 阅读全文
posted @ 2022-07-26 10:15 devgis 阅读(797) 评论(0) 推荐(0) 编辑
摘要: win7的任务栏进度条有一个专门的类TaskbarManager,他在Windows API Code Pack里面,下载地址:http://archive.msdn.microsoft.com/WindowsAPICodePack 里面包含了所有的源代码以及大量的示例,并附有文档。 为了使用Tas 阅读全文
posted @ 2022-07-26 10:14 devgis 阅读(279) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页