VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

 

Code Snippets

  

VB.NET Source Code


Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 340,156 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 3,999 people online right now. Registration is fast and FREE... Join Now!




Spoof you are online on a message board, etc.

Make the website display that you are "Online", when you aren't using the website.

Submitted By: RodgerB
Actions:
Rating:
Views: 653

Language: VB.NET

Last Modified: October 13, 2007
Instructions: Read the comments inside the snippet carefully to fully understand how it works.

Snippet


  1. ' This is our array of websites we want to visit, in order from top to bottom.
  2. ' First is the </dream.in.code> C/C++ forum, Second is the </dream.in.code> VB.NET
  3. ' forum, and finally we will use the </dream.in.code> PHP forum. (for the purpose
  4. ' of this snippet of course).
  5.  
  6. Dim WebpageList As String() = { _
  7. "http://www.dreamincode.net/forums/showforum15.htm", _
  8. "http://www.dreamincode.net/forums/showforum67.htm", _
  9. "http://www.dreamincode.net/forums/showforum28.htm"}
  10.  
  11. ' This is the timer that we will be using. We will make it cycle through the array
  12. ' of websites and navigate WebBrowser1 accordingly. I strongly recommend that you
  13. ' set WebBrowser1.Visible = false, so you aren't disturbed by the clicking noise
  14. ' made by navigating to websites (courtesy of IE). You will also need to have your
  15. ' cookies set so you log onto the site automatically, or you will be defined a guest.
  16.  
  17. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  18.     Static Counter As Integer = 0
  19.     WebBrowser1.Navigate(WebpageList(Counter))
  20.     Counter += 1
  21.     Counter = (Counter Mod WebpageList.Length)
  22. End Sub

Copy & Paste


Comments

girasquid 2007-11-02 08:52:05

Cool, this would be great for testing some of my user-tracking systems.


Add comment


You must be registered and logged on to </dream.in.code> to leave comments.





Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month