Download source code of Program :
I got Error 'Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))' of using cross domain in webbroser iframe tag.

Error Line : WebBrowser1.Document.Window.Frames(0).Document.GetElementsByTagName("input").Item(0).InnerText = "MyValue1"

Please solve the program. Thanks.

That is by design.
Cross-frame scripting is a vulnerability.

The design is to keep skimmers from hosting a bank's web page in an iframe and grabbing the user's personal data.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.