摘要: webservice 可以用于分布式应用程序之间的交互,和不同程序之间的交互。 概念性的东西就不说太多,下面开始创建一个简单的webservice的例子。这里我用的是Visual Studio 2015开发工具。 首先创建一个空的Web应用程序。 然后鼠标右键点击项目,选择 添加>新建项。 选择We 阅读全文
posted @ 2017-11-16 14:25 哈哈哈嗝 阅读(1509) 评论(1) 推荐(1) 编辑
摘要: 文件拖拽: 效果:将一个文件拖拽到窗体的某个控件时,将该控件的路径显示在该控件上,只要拿到了路径自然可以读取文件中的内容了。 将一个控件的属性AllowDrop设置为true,然后添加DragDrop、DragEnter时间处理函数,如下: 图片的缩放和拖拽: 一、实现鼠标滚轮控制图片缩放; 1、设 阅读全文
posted @ 2017-10-31 09:20 哈哈哈嗝 阅读(636) 评论(0) 推荐(0) 编辑
摘要: .net中常会用到动态加载DLL,而DLL中可能包含各种参数、方法、窗体,如何来调用动态加载这些参数、方法、窗体呢? 在C#中,我们要使用反射,首先要搞清楚以下命名空间中几个类的关系: System.Reflection命名空间 (1) AppDomain:应用程序域,可以将其理解为一组程序集的逻辑 阅读全文
posted @ 2017-10-25 09:23 哈哈哈嗝 阅读(759) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Reflection; using System.Collections; using System. 阅读全文
posted @ 2017-06-27 15:16 哈哈哈嗝 阅读(843) 评论(0) 推荐(0) 编辑
摘要: using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; //using System.Runtime.Serialization.Json; using S 阅读全文
posted @ 2017-06-27 15:03 哈哈哈嗝 阅读(512) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Reflection; using System.Collections; using System. 阅读全文
posted @ 2017-06-27 14:35 哈哈哈嗝 阅读(601) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.IO; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Drawing2D; namespace 阅读全文
posted @ 2017-06-27 14:14 哈哈哈嗝 阅读(1131) 评论(1) 推荐(1) 编辑
摘要: using System.Web; using System.Configuration; namespace DotNet.Utilities { public class VideoConvert : System.Web.UI.Page { public VideoConvert() { } 阅读全文
posted @ 2017-06-27 13:55 哈哈哈嗝 阅读(1824) 评论(0) 推荐(0) 编辑
摘要: 可进行FTP的上传,下载等其他功能,支持断点续传: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; usi 阅读全文
posted @ 2017-06-27 13:38 哈哈哈嗝 阅读(11262) 评论(11) 推荐(3) 编辑
摘要: using System; namespace DotNet.Utilities { /// <summary> /// 农历属性 /// </summary> public class CNDate { /// <summary> /// 农历年(整型) /// </summary> public 阅读全文
posted @ 2017-06-21 15:51 哈哈哈嗝 阅读(2848) 评论(0) 推荐(3) 编辑