USING Windows Forms Controls in Internet Explorer

xiaoxiao2021-03-06  70

USING Windows Forms Controls in Internet Explorer

This document describes how to successfully execute Windows Forms controls within Internet Explorer (IE). Windows Forms controls within IE are activated without user prompt, require no registration and utilize the Common Language Runtime (CLR) code access security.

There Are Four Steps in getting The Windows Forms Control ActiVated Withnet Explorer, Each Listed Here and Det Below.

Configure code Access Permissions Create An Html Document with an Object Tag Create The Virtual Directory, Copy Content and Set Permissions Run THE CONTOL

1. Windows Forms Control: SimpleControl.dll

Almost Any Windows Forms Control Could BE, But for this Example The SimpleControl That INCLUDEDITART TUTORIAL CREANG CONTLS WILL BE.

2. HTML Document: SimpleControl.html

The next step is to create an HTML document with and object tag to insert and activate the Windows Forms control. Some simple script and input tags will also be added to demonstrate programmatic access to the control.

Object Tag

ClassID = "http: simplecontrol.dll # microsoft.samples.winforms.cs.simplecontrol.simplecontrol"

HEIGHT = "300"

Width = "300">

The classid has two interesting parts;.. The path to the control library and the fully qualified name of the control separated by the pound sign If you are familiar with an ActiveX object tag, youll notice the lack of a GUID In the case of Windows Forms, the combination of path and fully qualified classname serve as the unique identifier.Param tags are used to set properties on controls. The name attribute is the name of the property and the value attribute is the value of the property.

Script