Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need help with my very first c# application Pin
Charles Cox7-Oct-10 16:20
Charles Cox7-Oct-10 16:20 
GeneralRe: Need help with my very first c# application Pin
S Houghtelin7-Oct-10 9:34
professionalS Houghtelin7-Oct-10 9:34 
GeneralRe: Need help with my very first c# application Pin
Luc Pattyn7-Oct-10 9:55
sitebuilderLuc Pattyn7-Oct-10 9:55 
GeneralRe: Need help with my very first c# application Pin
S Houghtelin7-Oct-10 10:01
professionalS Houghtelin7-Oct-10 10:01 
GeneralRe: Need help with my very first c# application Pin
OriginalGriff7-Oct-10 9:20
mveOriginalGriff7-Oct-10 9:20 
GeneralRe: Need help with my very first c# application Pin
turbosupramk37-Oct-10 10:01
turbosupramk37-Oct-10 10:01 
GeneralRe: Need help with my very first c# application Pin
turbosupramk37-Oct-10 10:12
turbosupramk37-Oct-10 10:12 
GeneralRe: Need help with my very first c# application Pin
OriginalGriff7-Oct-10 21:34
mveOriginalGriff7-Oct-10 21:34 
Yes! You are still using args[0]
PingReply reply = pingSender.Send(args[0], timeout, buffer, options);
Try:
PingReply reply = pingSender.Send(host, timeout, buffer, options);
Also change the comment near the top:
// args[0] can be an IPaddress or host name.
It may be accurate, but it isn't very helpfull! How about:
// Command line arguments can be an IPaddress or host name to ping.
That describes better what you are trying to do, rather than how you are achieving them.
However, you get a 5 just for putting comments in your first program. Laugh | :laugh:

Not a bad effort - keep it up!

Later, you may want to put in a loop, so you can use a number of addresses in the command line. See foreach for details.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

GeneralRe: Need help with my very first c# application Pin
turbosupramk38-Oct-10 4:28
turbosupramk38-Oct-10 4:28 
GeneralRe: Need help with my very first c# application Pin
OriginalGriff8-Oct-10 4:51
mveOriginalGriff8-Oct-10 4:51 
GeneralRe: Need help with my very first c# application Pin
turbosupramk313-Oct-10 7:20
turbosupramk313-Oct-10 7:20 
GeneralRe: Need help with my very first c# application Pin
S Houghtelin7-Oct-10 9:16
professionalS Houghtelin7-Oct-10 9:16 
AnswerRe: Need help with my very first c# application Pin
Nish Nishant7-Oct-10 8:17
sitebuilderNish Nishant7-Oct-10 8:17 
AnswerRe: Need help with my very first c# application Pin
MasttsaM13-Oct-10 22:43
MasttsaM13-Oct-10 22:43 
QuestionAbout creating Editable(fillable) PDF-forms Pin
sameermaske7-Oct-10 4:04
sameermaske7-Oct-10 4:04 
AnswerRe: About creating Editable(fillable) PDF-forms Pin
Ennis Ray Lynch, Jr.7-Oct-10 6:26
Ennis Ray Lynch, Jr.7-Oct-10 6:26 
QuestionParsing a text file. Pin
jenya77-Oct-10 3:21
jenya77-Oct-10 3:21 
AnswerMessage Closed Pin
7-Oct-10 3:41
stancrm7-Oct-10 3:41 
GeneralRe: Parsing a text file. Pin
jenya77-Oct-10 3:57
jenya77-Oct-10 3:57 
GeneralRe: Parsing a text file. Pin
#realJSOP7-Oct-10 23:41
mve#realJSOP7-Oct-10 23:41 
AnswerRe: Parsing a text file. Pin
PIEBALDconsult7-Oct-10 16:28
mvePIEBALDconsult7-Oct-10 16:28 
QuestionMicrosoft.Office.Interop.Excel BorderAround2 crash Pin
Blubbo7-Oct-10 2:58
Blubbo7-Oct-10 2:58 
AnswerRe: Microsoft.Office.Interop.Excel BorderAround2 crash Pin
Dave Kreskowiak7-Oct-10 3:44
mveDave Kreskowiak7-Oct-10 3:44 
GeneralRe: Microsoft.Office.Interop.Excel BorderAround2 crash Pin
Blubbo7-Oct-10 4:02
Blubbo7-Oct-10 4:02 
GeneralRe: Microsoft.Office.Interop.Excel BorderAround2 crash Pin
Dave Kreskowiak7-Oct-10 4:42
mveDave Kreskowiak7-Oct-10 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.