1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Visual basic 2008 iframes issue - automate iframes - vb.net automate iframe

Discussion in 'General Programming Chat' started by Inforequeter3, Mar 13, 2010.

  1. Inforequeter3

    Inforequeter3 Registered Member

    Joined:
    Apr 29, 2009
    Messages:
    86
    Likes Received:
    40
    Occupation:
    EMAIL LISTS SPECIALIST
    Home Page:
  2. bizminder

    bizminder Registered Member

    Joined:
    Mar 16, 2010
    Messages:
    68
    Likes Received:
    3
    Where can i report bugs or make product suggestions?
     
  3. heedcase

    heedcase Registered Member

    Joined:
    Aug 31, 2009
    Messages:
    71
    Likes Received:
    5
    you need to find the iframe source element and create a delegate method then invoke the method to process the iframe.

    Something like this.. I'm just setting some body text but you get the idea

    MethodInvoker myMethod = delegate
    {
    object myFrameIndex = num;
    HTMLWindow docWindow= myBrowser.document.domdocument.frames.item(ref myframeIndex);
    docWindow.body.innerHTML = "your text here";

    };
    myBrowser.Invoke(myMethod);