Click here to Skip to main content
15,886,077 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wanted to know how can I open link in another Windows(New Window(New Exe) instead of New Tab)where user is already logged-in and persist the cookies and other details and keep the user logged-in so that the user does not have to re-type his/her credentials.
I have reffered below link,
Extended .NET 2.0 WebBrowser Control[^]
That working fine in NewTab, but not in New Window(New Exe)
Can you please suggest me any solutions.
Thanks

What I have tried:

I have reffered below link,
Extended .NET 2.0 WebBrowser Control[^]
Posted
Updated 27-May-19 10:11am

Chrome has a command line option --new-window, see options here: List of Chromium Command Line Switches « Peter Beverloo[^]

If you prefer the WebBrowser control, try this:
C#
WebBrowser1.Navigate(Uri, true);
Or this:
C#
WebBrowser1.Navigate(url.SettingsValue, "_blank", post, headers);
url.SettingsValue : your url address
"_blank" : for new blank
post (your choice) : your token or password
headers (your choice) : token header like => "Authorization: Basic " + auth + "\r\n";

see: How to open a URL in new window using WebBrowser control in c# Windows Forms application and read its header information (via regex etc) - Stack Overflow[^]
 
Share this answer
 
v3
Comments
Ganesh B Patil 28-May-19 4:34am    
Hello Rick,
I am working on an application where I have used Windows form WebBrowser control (which is the component used in internet explorer) to browse the web pages. Now whenever the user clicks on open in new window I want to open that link in my own application may be in another window/form instead of the default window which has Internet Explorer logo on it.
RickZeeland 28-May-19 5:00am    
Updated the solution, btw. I'm not Peter but Rick !
When I click on the link label in my Windows form, it always opens IE only. But the default browser is "Chrome" which does not open, instead. Even IE is not the default browser in my system.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900