Follow the steps given below and you will be able to navigate from google to yahoo then to msn :-
1. create a invisible textbox and name it anything (we use url as name here).
2. go to webbrowsers document completed event. there type the following code to navigate without timers..
if url.text.contains("google") then
msgbox("We are on google now!")
webbrowser1.navigate("http://www.yahoo.com")
end if
if url.text.contains("yahoo") then
msgbox("We are on yahoo now!")
webbrowser1.navigate("http://www.msn.com/")
end if
if url.text.contains("msn") then
msgbox("We are on msn now!")
end if
3. create a button and set its text property to "Google".
go to its click event and type the following code there -
webbrowser1.navigate("http://www.google.com/")
The total codes work is like this, when you press the button webbrowser will navigate to google.com and
when its on google it will show a msgbox that its on google, after that msgbox it will navigate to yahoo
and the process will again happen then after the msgbox this time it will navigate to msn and show a
msgbox there and stop.
This entry was posted
on Wednesday, June 18, 2008
and is filed under
learn vb .net,
software without timer,
vb,
vb .net
.
You can leave a response
and follow any responses to this entry through the
Subscribe to:
Post Comments (Atom)
.

0 comments