VB Code:
  1. Private Sub Command2_Click()
  2.  
  3. n = -14
  4.  
  5.  
  6.  
  7. For n = n To Text2.Text
  8. n = n + 14
  9. myurl = Text3.Text & n
  10.  
  11. Inet1.Protocol = icHTTP
  12. Inet1.Execute CStr(myurl), "GET /"
  13. While Inet1.StillExecuting
  14.     DoEvents
  15.    Wend
  16.  Text1.Text = Replace(Text1.Text, vbCrLf + vbCrLf, vbCrLf)
  17. 'Call Limits
  18. Call parse
  19. Call Command3
  20.  
  21. Text1.Text = ""
  22.  
  23.  Next n
  24.  
  25. MsgBox "Done"
  26. End Sub
  27.  
  28.  
  29.  
  30. Private Sub Inet1_StateChanged(ByVal State As Integer)
  31. Select Case State
  32. Case 12
  33. stemp = Inet1.GetChunk(100)
  34. While stemp <> ""
  35. Text1.Text = Text1.Text & stemp
  36. 'Text1.Text = Replace(Text1.Text, " ", "")
  37. stemp = Inet1.GetChunk(100)
  38. Wend
  39. Text1.Text = Text1.Text & stemp
  40. Case 11
  41. MsgBox Inet1.ResponseInfo, vbCritical, "error"
  42. End Select
  43. End Sub



I need to pull html from a website and place it in a rich text box. This code worked once before , but I have changed computers and many updates. I am not sure if the code has gotten changed or modified but it doesn't work now. Any ideas or help is appreciated.