Frames and .NET WebBrowser Control HELP!

Posted on 2004-11-02
Last Modified: 2010-04-24
I have a form with two labels, a button and the .Net WebBrower Control on it.
My goal is to send the contents of the labels to fields on the asp form in the webbrowser control.
The following code does that just fine, but the actual form on the website I need to use, uses a top frame for navigation links!
When I try to send stuff to the webform it acts like it can only see the upper navigational frame and it wont fill out the form in the lower frame :(

How can I adjust the following code to send my stuff to that lower frame that contains the actual webform?

Thanks for any help.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        Dim FirstName As String
        Dim LastName As String
        FirstName = lblFirstName.Text
        LastName = lblLastName.Text
        With AxWebBrowser1
            Do While Not mblnDownloadCompleted
            .Document.All("app_first_name").Value = FirstName
            .Document.All("app_last_name").Value = LastName

            Do While Not mblnDownloadCompleted
        End With
    End Sub
Question by:Matrix1000
    LVL 18

    Accepted Solution

    either instead of getting the Main frame, give the path of the lower frame by inspecting the frameset i.e. source of HTML main file
    somethink like this

    or find the frames in the frameset and then send to it.
    How to find frames from a page.. see this PAQ
    LVL 1

    Author Comment

    I cant get directly to the form calling it that way, I have to login, go through a few other forms etc...
    Thanks tho

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now