我想做用vc做一activex控件对初始编程的人来说可能不是一件容易的事吧,在.net出现之后,有更简单的技术来替代它,那就是winform control,它可以把做好的winform control直接嵌入到IE中,对于访问本地磁盘和注册表的winform control,可能要重新设置安全策略。我们就拿多文件上传为例,进行讲述。

(一)   做一winform control
上面的代码中,公布了Uri和ServerFolder属性:Uri指定上传的url地址,ServerFolder指定存放的上传文件的文件夹;这俩个属性都是可读可写的,可以在网页中通过javascript和用户交互。到此为止,上传的winform控件就完成了,非常简单。(未完待续)

.net中activex的替代技术:winform control(一)using System;
.net中activex的替代技术:winform control(一)
using System.Collections;
.net中activex的替代技术:winform control(一)
using System.ComponentModel;
.net中activex的替代技术:winform control(一)
using System.Drawing;
.net中activex的替代技术:winform control(一)
using System.Data;
.net中activex的替代技术:winform control(一)
using System.Windows.Forms;
.net中activex的替代技术:winform control(一)
using System.Runtime.InteropServices;
.net中activex的替代技术:winform control(一)
using System.Net;
.net中activex的替代技术:winform control(一)
using System.IO;
.net中activex的替代技术:winform control(一)
namespace MultiFileUpload

 
URL:http://blog.csdn.net/xdfwsl/archive/2006/10/23/1347003.aspx

相关文章: