我在 VB.Net 中有以下代码来获取 IE 标签的 url:
Function getIEUrl() As List(Of String)
Try
Dim list As New List(Of String)
Dim sw As New ShellWindows()
For Each browser As InternetExplorer In New ShellWindows()
list.Add(browser.LocationURL)
Next
Return list
Catch ex As Exception
Return Nothing
End Try
End Function
如何管理它以仅获取活动选项卡的网址?
提前致谢!