IE in WinForm

zhaozj2021-02-16  48

Right-click on the toolbox, select Add / Delete Options, select the COM Component tab in the pop-up dialog, find the Microsof web browser component, determine,

Select the webbrowser control in the Toolbox, drag and drop on to the form, then write the code:

Private void Button1_Click (Object Sender, System.Eventargs E)

{

???? String str = "";

???? system.Object nullobject = 0;

???? system.Object nullobjstr = STR;

???? this.axwebbrowser1.navigate ("

Www.9cbs.net ", Ref Nullobject, Ref Nullobjstr, Ref Nullobjstr, Ref Nullobjstr);

}

转载请注明原文地址:https://www.9cbs.com/read-20942.html

New Post(0)