javastript
-
[WinForms WebBrowser] 자바스크립트에서 C# 메소드를 호출하는 방법닷넷/WinForms 2022. 8. 3. 13:50
namespace WindowsFormsApplication6 { // This first namespace is required for the ComVisible attribute used on the ScriptManager class. using System.Runtime.InteropServices; using System.Windows.Forms; // This is your form. public partial class Form1 : Form { // This nested class must be ComVisible for the JavaScript to be able to call it. [ComVisible(true)] public class ScriptManager { // Variab..