Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB6: UserDataFolder and UserAgent are ignored
#1
Hi.

I am testing AntView (32-bit, v1.0.111.0) in Visial Basic 6 (on Windows 10)
and I see that two properties UserDataFolder and UserAgent are not working correct.

I set own values for UserDataFolder and UserAgent
but AntView ignore that. This is my VB6 code

Private Sub Form_Load()
AntView.UserDataFolder = "C:\Users\Tester\AppData\Roaming\Soft22\WebView"
AntView.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
End Sub

Private Sub Form_Unload(Cancel As Integer)
Debug.Print AntView.UserDataFolder ‘C:\Users\Tester\AppData\Local\Temp\vb6.exe.WebView2
Debug.Print AntView.UserAgent ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.39
AntView.CloseBrowserProcess
AntView.CloseWebView
End Sub

In other words, the AntView does not take entered values but uses the default

Could tell me how to fix it?
Reply


Messages In This Thread
VB6: UserDataFolder and UserAgent are ignored - by MrPrzemek - 2022-04-17, 07:57:38

Forum Jump:


Users browsing this thread: 1 Guest(s)