trying to trying to get extract content from a web page in to a listbox

and contents are in this format

5 Years
Discussion Span
Last Post by thines01

How you extract the data will depend on how it is stored on the web page.
The issue will be parsing the HTML.
Do you have a sample page?

Without knowing more, I would use a System.Net.WebClient and use the .OpenRead() feeding it to a StreamReader.
That way, your page will be delivered to you as a stream and you can parse the lines.


any reply? guys am new learner not coder like you if u help me it would b great help for me and i will finsh my application for my personal use

Edited by honeybee2090


One problem is that page is not showing me the content you're talking about.
If I register there, will I see it?


oh let me fix this then u can after fix i will let u know

"now fixed

see this link

Click Here

lil more information about application

i use web browser in that
no http request method plz
i want to do with web browser

Edited by honeybee2090


OK. Here is a quick method to extract those address from that forum page:

Imports System
Imports System.IO
Imports System.Linq
Imports System.Net
Imports System.Text.RegularExpressions

Module Module1
   Function GetAddresses(ByVal strUrl As String) As List(Of String)
      Dim lst_strData As New List(Of String)
      Dim wc As New WebClient()
      Dim rxIpAndPort As New Regex("(?<IpAndPort>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,})")
      Dim fileWebIn As New StreamReader(wc.OpenRead(strUrl))
      While Not fileWebIn.EndOfStream
         lst_strData =
            fileWebIn.ReadToEnd() _
               .Split("<>".ToCharArray(), StringSplitOptions.RemoveEmptyEntries) _
               .Where(Function(s) rxIpAndPort.IsMatch(s)) _
               .Select(Function(s) rxIpAndPort.Match(s).Groups("IpAndPort").Value) _
      End While

      Return lst_strData
   End Function
   Sub Main()
      Dim lst_strIpAndPort =

      lst_strIpAndPort.ForEach(Sub(s) Console.WriteLine(s))
   End Sub
End Module

You can pull out that function (GetAddresses()) and use it in a Web Browser app or WinForm or console app or whatever.

Edited by thines01

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.