Webbrowser Features Thread (Updated Daily)

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
17 posts Page 2 of 2
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

I have 449 Lines in my Browser Code,and i also have some other Forms with alot Codes ;) and i wrote everything in some Hours :)
YouTube Downloader v3.0
Image
Image
Image
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Napster1488 wrote:
I have 449 Lines in my Browser Code,and i also have some other Forms with alot Codes ;) and i wrote everything in some Hours :)
very nice for a few hours work.

Heres some code to use the Enter key when you navigate:

Select your combo box and in the properties click Event sand double click Key Up then add this code
Code: Select all
If e.KeyCode = Keys.Enter = True Then
                CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ComboBox1.Text)
End If
Or if you are not using tabcontrol then just use this code:
Code: Select all
If e.KeyCode = Keys.Enter = True Then
                WebBrowser1.Navigate(ComboBox1.Text)
End If
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
Jg99
VIP - Site Partner
VIP - Site Partner
Posts: 453
Joined: Sun Mar 20, 2011 5:04 am

Cool
http://www.sctechusa.com SilverCloud Website
User avatar
BlakPilar
New Member
New Member
Posts: 15
Joined: Fri Apr 08, 2011 7:49 pm

#1 Navigate From Combobox
What people don't realize is that a ComboBox won't store your entries for you, YOU need to make it do that. If you don't, it makes it look like it has that feature, but it doesn't.

Sorry, I had to say that :P
Image
User avatar
BlakPilar
New Member
New Member
Posts: 15
Joined: Fri Apr 08, 2011 7:49 pm

If e.KeyCode = Keys.Enter = True Then
WebBrowser1.Navigate(ComboBox1.Text)
End If
You don't need the final " = True" for a conditional (it's redundant). It will only execute what's inside of the block if the overall condition is true. You only need
Code: Select all
If e.KeyCode = Keys.Enter Then
    WebBrowser1.Navigate(ComboBox1.Text)
End If
EDIT: You NEED to have the form's KeyPreview property set to true to make this work.
Image
User avatar
Bogoh67
VIP - Site Partner
VIP - Site Partner
Posts: 656
Joined: Sun Apr 18, 2010 8:20 pm

i agree with axel
User avatar
shekoasinger
New Member
New Member
Posts: 23
Joined: Sat Dec 04, 2010 9:40 pm

Hmm some while ago I made a really good one, I personally believe that these Webbrowser made by ourselves could even be better than the popular ones (regarding features/tools), but performance will never be better.

I can basically give any type of code, how to use a proxy, etc. But Im currently at school so I will just try my best on top of my head:

Press Enter in combobox, to navigate:

Declare the combobox .KeyPress event or something similar:
Code: Select all
If e.Keycode = Keys.Enter Then
    Webbrowser1.navigate(combobox1.text)
End If
17 posts Page 2 of 2
Return to “Tutorials”