473,395 Members | 1,568 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,395 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 2002
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.