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:
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.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
What lines of the code above can I rewrite to do the above??,.. I would really appreciate it. Thanks![]()


Reply With Quote

