.NET multi-user gmail accounts with 2 web browser controls

I have a two-tab tab control with a web browser control for each of them. I want to display 2 different gmail accounts on it, but at the same time I can log in via webbrowser1 webbrowser 2.

Is there a way to transform what I want?

+4
source share
4 answers

Impossible, I think this is done the way you try ... since the Webrowser component is an internet explorer of your syatem

What you can do is use Gecko in the second tab

+1
source

IE 8 offers the New Session feature in the user interface. I would suggest that this function can also be implemented in your own interface. See this article for how it works in the user interface. Find your web browser management documentation to do the same.

0
source

You cannot launch the WebBrowser control in InPrivate mode. It is often asked, but not supported (yet?).

But you can run two real instances of IE in InPrivate mode.

Either run two Firefox or two instances of Chrome in different profiles , as recommended here .

0
source

Here is some code that will give you access to IE InPrivate IE

Friend Function Open(Optional ByVal Url As String = "about:blank", Optional ByVal WindowState As ProcessWindowStyle = ProcessWindowStyle.Hidden) As WebBrowser On Error Resume Next Dim Start As New ProcessStartInfo Dim Windows = New ShellWindowsClass Dim Count = Windows.Count Start.FileName = "iexplore.exe" Start.Arguments = "-private -nomerge " & Url If WindowState = ProcessWindowStyle.Hidden Then Start.WindowStyle = ProcessWindowStyle.Minimized Else Start.WindowStyle = WindowState End If Process.Start(Start) Wait.Reset() Do If Windows.Count > Count Then Exit Do Loop While Wait.Waiting Browser = Windows(Count) Browser.Visible = (WindowState <> ProcessWindowStyle.Hidden) Return Browser End Function 
0
source

Source: https://habr.com/ru/post/1342675/


All Articles