Hi everyone

What i need to know is how to refresh/load a single frame and not the whole page.

Code:
If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then

            Dim theStatusCollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("frame")
            For Each curElement As HtmlElement In theStatusCollection
                Dim controlName As String = curElement.GetAttribute("id").ToString
                If controlName = "main" Then
                    curElement.GetAttribute("scr").Equals("./BeO/webroot/index.php?module=Launchpad")
'this is where i want to refresh/load the scr in the "main" frame but i dont want to refresh the whole page
                End If
            Next
Also if anyone knows how i could put this code in an external file and just make a call to it this would be great

so would be like this

External File Name

Code:
Public Sub Login()
     'Code for login goes here
End Sub

Then just make a call to it in my Form1.vb

Code:
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

Call Login.Sub

System.Threading.Thread.Sleep(2000)

Call Name.Sub
Something like that

Thnx in advance
PureBrit