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.
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 

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 Hoursvery 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
Or if you are not using tabcontrol then just use this code:If e.KeyCode = Keys.Enter = True Then
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ComboBox1.Text)
End If
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!
#1 Navigate From ComboboxWhat 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
If e.KeyCode = Keys.Enter = True ThenYou 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
WebBrowser1.Navigate(ComboBox1.Text)
End If
Code: Select all
EDIT: You NEED to have the form's KeyPreview property set to true to make this work.If e.KeyCode = Keys.Enter Then
WebBrowser1.Navigate(ComboBox1.Text)
End If
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:
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
Copyright Information
Copyright © Codenstuff.com 2020 - 2023