Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change name of a form in code

Status
Not open for further replies.

hilliolouis

Programmer
Jul 22, 2005
51
GB
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)
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
 
resolved, not paying attention has to be = (name you want)

Louis Hill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top