Frames and .NET WebBrowser Control HELP!

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.

Code******************************
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        AxWebBrowser1.Navigate2("http:\\www.thiswebsitewithaform.com")
    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
                Application.DoEvents()
            Loop
            .Document.All("app_first_name").Value = FirstName
            .Document.All("app_last_name").Value = LastName
           

            Do While Not mblnDownloadCompleted
                Application.DoEvents()
            Loop
        End With
    End Sub
LVL 1
Matrix1000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

armoghanCommented:
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
AxWebBrowser1.Navigate2("http:\\www.thiswebsitewithaform.com\lowerform.asp")

or find the frames in the frameset and then send to it.
How to find frames from a page.. see this PAQ
http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_21166050.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Matrix1000Author Commented:
I cant get directly to the form calling it that way, I have to login, go through a few other forms etc...
Thanks tho
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.