Forgot Password / Register
Site Statistics
Total Members: 510
Total Tutorials: 242
Newsest User: Hp
Todays Unique Hits: 222
0 Users 5 Guests Online

Web browser part 2

So now isnt it annoying to press enter on your new browser and nothing happens well now you can with this code
1
2
3
4
5
Private Sub cburl_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then
web.Navigate cburl.Text
End If
End Sub


What about a google search???
Create a textbox (gsearch) and a buttom (cmdgoogle)
1
2
3
4
Private Sub cmdgoogle_Click()
web.Navigate "http://www.google.com/search?hl=en&q="+ gsearch + "&btnG=Google+Search"
cburl.Text = "http://www.google.com/search?hl=en&q="+ gsearch + "&btnG=Google+Search"
End Sub


Now a yahoo search
So a text box (ysearch) and a button (cmdyahoo)

1
2
3
4
Private Sub cmdyahoo_Click()
web.Navigate "http://search.yahoo.com/search?fr=slv2-&ei=UTF-8&p=" + 
cburl.Text = "http://search.yahoo.com/search?fr=slv2-&ei=UTF-8&p=" + ysearch
End Sub


Maybe some more to come but thats all for now folks!
MOD-Dan
Author:
Views:
1548
Rating:
Posted on Thursday 12th July 2007 at 06:08 PM
FtH8er
FtH8er
anywhere on your layout, if u are talkin about the design part, or if u are talkin bout the code part it doesnt matter where u put it.
Posted on Thursday 12th July 2007 at 05:57 PM
vb_king
vb_king
no i mean the google thing, when i put the code in where do i put the button and text box? O_O
Posted on Thursday 12th July 2007 at 05:41 PM
MOD-Dan
MOD-Dan
anywhere in your code
Posted on Thursday 12th July 2007 at 05:11 PM
vb_king
vb_king
but where are we supposed to put this? O_O