摘要: 前些日子做一个Web项目,必须自己编写一个ActiveX控件。如今的ActiveX控件大多是使用VB/C++来开发的,而我对他们并不熟悉,因此考虑使用熟悉的C#编写ActiveX控件。 首先,建立一个WinForm控件项目HelloWorld,并拖入一个Label控件,文字设为HelloWorld UserControl1.cs内容如下: using System; using Syst... 阅读全文
posted @ 2007-08-31 15:41 阳光囧男 阅读(721) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Runtime.InteropServices;namespace MyServiceInstaller{class ServiceInstaller{#region Private Variablesprivate string _servicePath;private string _serviceName;private string _s... 阅读全文
posted @ 2007-08-31 15:04 阳光囧男 阅读(919) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Diagnostics;using System.ServiceProcess;using System.Text;using System.Threading;using System.W... 阅读全文
posted @ 2007-08-31 14:52 阳光囧男 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: By: Imran Nathani 翻译:veryhappy(wx.net) ActiveX控件支持自定义程序接口。利用这种方法,外部可以访问控件的事件和属性,Web开发者可以自动操作他们的Web页面,等同于一般的桌面应用的功能。 介绍 作为一个Web应用程序开发者我们想提供给我们的用户具有更强功能的应用程序。我们想为用户通过脚本提供像打印流,本地Socket程序,本地线程这样功能的程序,但是... 阅读全文
posted @ 2007-08-31 10:53 阳光囧男 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 通过学习对C#中接口的作用有了更进一步的理解,拿出来跟大家分享一下,有说的不对的地方请大家指教。我在上一篇帖子(http://www.programfan.com/club/showbbs.asp?id=150228)中只是简单的谈了一下接口的作用,有兴趣的朋友可以去看一下。言归正传: 假设我们公司有两种程序员:VB程序员,指的是用VB写程序的程序员,用clsVBProgramer这个类表示... 阅读全文
posted @ 2007-08-31 09:34 阳光囧男 阅读(402) 评论(0) 推荐(0) 编辑