By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,679 Members | 1,500 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,679 IT Pros & Developers. It's quick & easy.

How can test my activex control without the IIS server?

P: n/a


I just wrote some simple code to test if the activex can work well
in IE browser; after build it I got a ActiveXDemo.dll, but I don't
konw how to test it :(

And I get an example like this:

<body bgcolor='#223344'>
<object id="helloworld" classid='http://localhost/
HelloWorld.dll#HelloWorld.Demo' Width="184" Height="96" VIEWASTEXT</

But I don't have the IIS in my PC. How can I test following code in
my local machine? What the html looks like?
The following is the sample code.
using System;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ActiveXDemo
public partial class UserControl1 :
private System.ComponentModel.Container components = null;

public void ShowHohoDemo()

protected override void Dispose(bool disposing)
if (disposing)
if (components != null)

private void InitializeComponent()
this.label1 = new System.Windows.Forms.Label();

this.label1.Location = new System.Drawing.Point(32, 32);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(120, 32);
this.label1.TabIndex = 0;
this.label1.Text = "Here's HoHo!";
this.label1.TextAlign =

this.Name = "ShowHohoDemo";
this.Size = new System.Drawing.Size(184, 96);

private Label label1;

Aug 6 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.