hilliolouis
Programmer
how do you change the name of a form in code to pull part of the name from a variable (ie the title of an internet explorer)
Louis Hill
Code:
Private Sub wbMain_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles wbMain.DocumentCompleted
Dim currentpage As String
currentpage = wbMain.Url.ToString
cbURL.Text = currentpage
Dim ctitle As String
ctitle = wbMain.DocumentTitle.ToString
Me.Text("Default Internet Explorer - " & ctitle)
End Sub
Louis Hill