Results 1 to 5 of 5

Thread: Please Help With Code: Web Based

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2012
    Posts
    75

    Exclamation Please Help With Code: Web Based

    I Am Having Issues Finding A Method To Get The System.String Results To the cnine variable below.

    System.String is System.__ComObject.ToString

    This is the Code:

    Code:
            Dim CodeElementsy As HtmlElementCollection = Form1.WebBrowser1.Document.GetElementsByTagName(txttgname.Text)
            For Each codeElementy As HtmlElement In CodeElementsy
                    If codeElementy.GetAttribute("style").GetType.ToString <> "" Then
                        Dim cnine = codeElementy.GetAttribute("style").GetType.ToString
                        If cnine = "System.String" Then
                            'Get The System Com Event As Text
                            txtssbox.Text += "Style: " + cnine + vbCrLf
                        End If
                    End If
    When cnine is displayed, is shows System.String as the Result in the TextBox of txtssbox.Text, but, I want it to display the value of the system.string(system.__comobject) as a string result.

    What lines of the code above can I rewrite to do the above??,.. I would really appreciate it. Thanks
    Last edited by VBbbq; Jul 15th, 2012 at 08:26 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width