我見過很多使用JavaScript來運行彈出窗口來刪除地址欄的例子。我的問題是我想運行一個完整的網站[我已經在ASP.net中創建],而無需從Windows窗體應用程序中看到地址欄。Windows窗體運行網站沒有地址欄
我已經試過:
Dim objIE As Object 'InternetExplorer 'or as object - if you want to keep it lite and don't add the reference
objIE = CreateObject("InternetExplorer.Application")
With objIE
.Visible = True
objIE.AddressBar = False
objIE.MenuBar = False
objIE.ToolBar = False
.Navigate2(Address)
End With
objIE.Navigate = Address
,但我在Cannot create ActiveX component
的CreateObject得到一個錯誤。
所以我目前的工作代碼運行的網站是:
Dim process As New System.Diagnostics.Process()
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
Dim sInfo As New ProcessStartInfo(Address)
Process.Start(sInfo)
然而,地址欄是可見的。
有什麼建議嗎?
你可以直接在全屏模式下運行它,地址欄會暫時隱藏嗎?或者你是否試圖完全刪除欄。 – Busse
我想零訪問地址欄由於各種原因,並需要從其他原因從Windows窗體運行網站@Busse – narue1992
我讀'processwindowstyle.hidden'需要'process.StartInfo.UseShellExecute = False',但沒有' t做任何事情@Busse – narue1992