Webbrowser Open links

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
17 posts Page 2 of 2
Contributors
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: Webbrowser Open links
Usman55
Can you explain a bit more? Like can you tell me for what you need the codes for?
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Webbrowser Open links
CodenStuff
Hello,

I know what you mean, you want to be able to right-click on a link in a webpage and open it in a new tab using a contextmenu. Im not sure how to do that from the webbrowser control to be honest but I did find this project online which does it, have a look through: http://www.codeproject.com/KB/recipes/I ... owser.aspx

Not sure how to capture links from within a browser control :?
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
MasterCoding
Top Poster
Top Poster
Posts: 156
Joined: Sat Oct 24, 2009 4:26 pm

Re: Webbrowser Open links
MasterCoding
for to open it in a new tab like and a new window like in internet explorer and then not in explorer that is it doing now but i wanna open it in my tabcontrol or a new window in my program
User avatar
MasterCoding
Top Poster
Top Poster
Posts: 156
Joined: Sat Oct 24, 2009 4:26 pm

Re: Webbrowser Open links
MasterCoding
codenstuff can you post the codes because i can't find it
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Webbrowser Open links
CodenStuff
Hello,

Ok ill have a look for you and see if I can figure it out cooll;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Webbrowser Open links
Agust1337
MasterCoding wrote:
yes yes i JUST WANT TO KNOW SOME CODES NOT THE STEPS JUST CODEs!!!!!!!!!!!!!!!!!!!!!!
All you gotta do is this:
Click on your webbrowser -> click the lightning -> double click NewWindow:
Private sub webbrowser1_NewWindow and so on...
Code: Select all
Dim newtab As TabPage
        Dim webb As New WebBrowser
        e.Cancel = True
        newtab.Text = "Untitled"
        webb.Dock = DockStyle.Fill
        webb.Url = New Uri(Me.wb.Url.AbsoluteUri)
        newtab.Controls.Add(webb)
        Me.wb = webb
        Me.tabcontrol1.Controls.Add(newtab)
there ya have it...
Top-notch casual Dating
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Webbrowser Open links
zachman61
i think he means like the save image and save file stuff like that
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
17 posts Page 2 of 2
Return to “Tutorial Requests”