הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Question
Friday, January 2, 2015 3:02 PM
Navigate a open webpage in chrome or IE or firebox using vb.net
i want to make an app that can navigate open webpage in chrome or IE or any other browser
suppose google.com is opened a tab of chrome
i want to navigate that Google page to yahoo.com through vb.net
All replies (7)
Saturday, January 3, 2015 2:12 AM ✅Answered
its a seperate application and i mean how to get that particular tab i can get process but not tab
Try SPY++ with comes with Visual Studio except possibly express editions. Otherwise download something free that says it does what SPY++ does and see if you can get the child windows of the webbrowser in question. The tabbed control should have a child window where some text is displayed even if the URL is in the Navigation tabs child window.
Then you may need to use Pinvoke capabilities to get various parent and child windows until you get the ones you want. And after that use sendmessage (pinvoke) possibly to do whatever you are attempting to do.
La vida loca
Friday, January 2, 2015 3:08 PM
You can use Process.Start to open any web page in the computer's default browser.
System.Diagnostics.Process.Start("http://www.yahoo.com")
Friday, January 2, 2015 3:11 PM
i m not talking about opening a link m talking about navigating a webpage which is opened in a tab of chrome
Friday, January 2, 2015 3:14 PM
You could try this:
Response.Redirect("http://www.microsoft.com")
Best regards Jakob
Friday, January 2, 2015 3:27 PM
i m not talking about opening a link m talking about navigating a webpage which is opened in a tab of chrome
I'm not sure what you mean by "navigating a webpage". It sounds like you want to open a web page in a particular tab of a particular browser. Is this browser part of a form of your application, or is it separate from your application. If it's separate, you will need a way for your application to know which running application to communicate with. That will probably require using the Windows API functions to find the right window. Then you may be able to use SendKeys to type the URL in the chosen browser.
This thread discusses using SendKeys to send keystrokes to another application from a VB application: social.msdn.microsoft.com/Forums/vstudio/en-US/1bc32f0e-f8fb-4199-92f8-00f8bcaefe21/using-sendkeys-to-send-to-another-application?forum=vbgeneral
Friday, January 2, 2015 3:29 PM
An open Webpage is a or are more temp file somewhere in the cache disk of IE, FireBox or Chrome.
It is also in memory but that you would never know.
However, you can start yourself IE by using the Interop.SHDocVw and then you can reach it.
Here some code in C# but somebody who has little experience in VB can even direct use it.
Success
Cor
Friday, January 2, 2015 4:21 PM
its a seperate application and i mean how to get that particular tab i can get process but not tab