Start talking from "using Windows Form Controls in Internet Explorer"

xiaoxiao2021-03-06  109

Firstly, the article "Use Windows Form Control" in Internet Explorer "in Internet Explorer: (If some of the information references cannot be displayed properly, please click on the link above) This topic describes how to describe how to in Internet Explorer The Windows Form Control is successfully performed within IE. The Windows Form Control within IE can be activated without user tips, which does not require registration, and uses the public language runtime (CLR) code access security. The Windows Form Control is activated in Internet Explorer. It takes five steps, which lists each step and is described in detail below.

Create a Windows Form Control. Create an HTML document with an Object tag. Create a virtual directory and set permissions. Run the control. Creating a Windows Form Control Almost any Windows Form Control in Internet Explorer, but for this example, we will carry the SimpleControl included in the Create Control section of this Quick Start Tutorial. This control must be installed into the global program cache or in the same virtual directory with the web page containing it. Creating an HTML document with an Object tag Next is to create an HTML document with an Object tag that references the Windows Form Control. For this example, some simple scripts and input tags will also be added to demonstrate program access to the control.

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

Height = "300" width = "300" Viewastext>

ClassID has two interested parts: pointing to the path of the control library and the fully qualified name of the control, both by # 号. If you are familiar with the ActiveX Object tag, you will notice the lack of a GUID. In the Windows Form, the combination of the path and the fully qualified class name is a unique identifier. PARAM tag can be used to set properties on the control. In this case, the Name characteristic is the name of the attribute, and the value characteristic is the value of the attribute.