C # Developing ActiveX Control Operations Guide

Source: Internet
Author: User

C # Development ActiveX controls are useful for developing web pages, and the following provides a guide for developing ActiveX controls in C # for your reference.

0. Foreword

An ActiveX control, formerly known as an OLE control or OCX control, is a software component or object that can be inserted into a Web page or other application. With an ActiveX plug-in, you can easily insert multimedia effects, interactive objects, and complex programs into your Web pages.

You typically develop ActiveX controls using C + + or VB, and this article explores the technical implementation of developing ActiveX controls using C # in a visual Studio 2005 environment.

1. Problem Scenarios

In the system of C/s architecture, clients need to implement some business functions, which can be conveniently implemented by installing the relevant application sets. The same demand, in the B/s framework of the system is more difficult to achieve. Because all programs are placed on the server side, the client simply uses the browser to access the server side through the HTTP protocol. A more mature solution is to develop ActiveX controls installed on the client, so that the client's browser can access local ActiveX controls to perform related local operations. This article is going to talk about using C # to develop an ActiveX control that reads and displays the client's system time.

2. Development environment

Windows XP

Visual Studio 2005

. NET Framework 2.0 (C #)

3. Implementation process

3.1.ActiveX Control Development

In the Visual Studio 2005 development environment, you can use the Windows Control Library project to implement the development of ActiveX controls, but you need to make some necessary settings for your project. Let's look at how to develop an ActiveX control using the Windows Control Library project. First create an application solution and add a Windows Control Library project:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.