Re: C# or VB.Net demo ?

Giganews Newsgroups
Subject: Re: C# or VB.Net demo ?
Posted by:  Chad Z. Hower aka Kudzu (cp…@hower.org)
Date: Thu, 3 Feb 2005

"Craig Kenisston" <craigkenisst…@hotmail.com> wrote in
news:D059794CF5BDE240craigkenisst…@hotmail.com:
> Is there any memo of using NNTP component with either C# or VB.Net ?
> Even a very simple demo is welcome :)

Private Sub butnPost_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butnPost.Click
  butnPost.Enabled = False
  Try
    Dim xMsg = New Indy.Sockets.Message
    xMsg.Subject = "Indy.NET test post"
    xMsg.From.Address = "ch…@hower.org"
    xMsg.Newsgroups.Add("atozedsoftware.test")
    xMsg.Body.Text = "This is a test message from the Indy NNTP demo"
    Dim xNNTP = New NNTP
    xNNTP.Connect("news.atozed.com")
    Try
      xNNTP.Post(xMsg)
    Finally
      xNNTP.Disconnect()
    End Try
  Finally
    butnPost.Enabled = True
  End Try
End Sub

Replies

None

In response to

C# or VB.Net demo ? posted by Craig Kenisston on Mon, 31 Jan 2005