473,320 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem in developing newsreader in vb.net

Hello,

I am developing a Newsreader in vb.net and i am

getting a problem in posting article to newserver

for a particular set of newsgroups. i developin g

this newsreader using nntp commands.I need

vb.net code for posting a article . I getting a

problem in defining a article format.

Kindly , Send me code for posting article in vb.net

using nntp command "post".

with regards,
balu.
Nov 21 '05 #1
2 1995
Hi,

Here is the code (by Randy Charles Morin) (C#) for posting to newsgroup:

public void Post(string newsgroup, string subject, string from, string
content)
{
string message;
string response;

message = "POST " + newsgroup + "\r\n";

Write(message);
response = Response();

if (response.Substring( 0, 3) != "340")
throw new NntpException(response);
message = "From: " + from + "\r\n"

+ "Newsgroups: " + newsgroup + "\r\n"

+ "Subject: " + subject + "\r\n\r\n"

+ content + "\r\n.\r\n";

Write(message);

response = Response();

if (response.Substring( 0, 3) != "240")
throw new NntpException(response);
}

Regards,
Peter Jausovec
(http://blog.jausovec.net)

".net" <ba****************@yahoo.com> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl...
Hello,

I am developing a Newsreader in vb.net and i am

getting a problem in posting article to newserver

for a particular set of newsgroups. i developin g

this newsreader using nntp commands.I need

vb.net code for posting a article . I getting a

problem in defining a article format.

Kindly , Send me code for posting article in vb.net

using nntp command "post".

with regards,
balu.

Nov 21 '05 #2
".net" <ba****************@yahoo.com> schrieb:
I am developing a Newsreader in vb.net and i am

getting a problem in posting article to newserver

for a particular set of newsgroups. i developin g

this newsreader using nntp commands.I need

vb.net code for posting a article . I getting a

problem in defining a article format.


Some additional information:

Accessing newsgroups with NNTP
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=nntp&lang=en>

Please only post to groups that are related to your problem in future!

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: paul | last post by:
I have developed an application for pocket pc that requires multiple forms to be open at any one time. The user is able to flick from one to the other, making changes to each as and when necessary...
2
by: balu | last post by:
Hello, I am developing a Newsreader in vb.net and i am getting a problem in posting article to newserver for a particular set of newsgroups. i developin g this newsreader using nntp commands.I...
0
by: Harry_Crow | last post by:
I have some problem developing the Schema. The below is part of my xml file. <group name="..."> <Skip/> <Item/> <Skip/> <Item/> <Item/> <group name="..."/>
1
by: Tim Johnson | last post by:
Hi all, I'm a little bit stuck, so wondering if anyone has encountered this issue before. I am developing a toolkit which is fully integrated in Visual Studio .NET, and so there are lots of...
19
by: Joseph MCAD | last post by:
April 5, 2005 Does anybody know how to access these newsgroups through a newsreader? I would prefer to use Outlook Express. If you know the name of the news server and any other configuration...
4
by: DeanL | last post by:
Hi All, Having a problem developing an Access 97 database in Access 2003. The database needs to go out to a number of staff who will review it and recommend any changes but when I convert the...
0
by: John Haycock | last post by:
Hi All I've been having a problem developing an asp.net web site. I'm using fckEditor as a small content management solution for adding news items and such to the site. Everything works great...
2
by: nicmck34 | last post by:
Hi, I'm having a problem developing a menu for a XNA project. I'm relatively new to C#. The error that I'm getting is: 'Microsoft.Xna.Framework.Graphics.GraphicsDevice' is a 'type' but is...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.