Click here to Skip to main content
15,896,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am developing a VB.NET Windows application. From that, I will click one button that will open a website for example "www.google.com". After that I minimized that URL and started working on the VB.NET application. Once again, I will click the button in Windows Form that will once again open a new browser or tab in the existing browser. But I need to check if the browser already has a Google site. We need to open that Google in the same browser, not in a different browser or tab... How can I do this?

I used "process.start("http://www.google.com")" code to open the website from VB.NET.

Any ideas, please let me know.
Thanks a lot in advance.
Posted
Updated 23-Aug-10 8:24am
v3

It's impossible. Process.Start starts the default browser, whatever it is, it could be firefox, safari, Mozilla, you name it. Even if you know the browser, and have the process handle, it would be a bit of work to work out how to find the window that has the URL in it, and I expect even that would differ between versions of IE, for example.
 
Share this answer
 
Comments
Member 3956257 18-Aug-10 6:57am    
Reason for my vote of 3
thanks.
Thanks for your response, my requirement is If i opend a browser (Default ie) with url ex (google) by clicking button on the window form, once again if i click the same button without closing the existing browser means i have to refresh the same browser, it should not open in new browser or Tab..
Please suggest me.
 
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