By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

How Do IOpen Another myBrowser Form When A` URL Is Clicked

P: 3
I Have made a browser in vb 2005 express.
But when i click on a URL it opens up with Internet Explorer and i want it to open in another form. Could Someone kindly tell me how this is done.
Sep 14 '07 #1
Share this Question
Share on Google+
5 Replies


VBPhilly
P: 95
I Have made a browser in vb 2005 express.
But when i click on a URL it opens up with Internet Explorer and i want it to open in another form. Could Someone kindly tell me how this is done.
how did you make a browser?
did you embed an internet explorer control?
use the webbrowser control?

sounds like you have a settings issue: "open links in a new browser window".
I think you are at the mercy of these settings when using embedded IE browser controls.
Sep 15 '07 #2

VBPhilly
P: 95
I should also offer that you SHOULD be able to capture click events in the embedded browser control.
try looking for some events in your control.
again, no idea how you are embedding a browser. need more info.
Sep 15 '07 #3

P: 3
how did you make a browser?
did you embed an internet explorer control?
use the webbrowser control?

sounds like you have a settings issue: "open links in a new browser window".
I think you are at the mercy of these settings when using embedded IE browser controls.
i used the web browser control that comes with the vb express edition
Sep 16 '07 #4

VBPhilly
P: 95
i used the web browser control that comes with the vb express edition
ok, you'll need to code some events to 'capture' things like hyperlink clicked.
Within those events is where you will be able to handle the transition to your other forms webbrowser control.

here is a tutorial/information about handling events for the webbrowser control: http://msdn2.microsoft.com/en-us/library/aa752045.aspx
Sep 16 '07 #5

P: 3
thanks for the link but it seems to be in vb6 which is fine until i reach the line:
[mybrowser.Document.All("btnMyButton").onclick = cfForward]
where i get the error
"Onclick is not a member of 'system.windows.forms.htmlelement'
Sep 17 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.