Click here to Skip to main content
12,692,580 members (33,641 online)

Visual Basic

 
QuestionModule error> PLEASE HELP! Pin
leashim11-Nov-12 14:57
memberleashim11-Nov-12 14:57 
AnswerRe: Module error> PLEASE HELP! Pin
Dave Kreskowiak11-Nov-12 18:08
mvpDave Kreskowiak11-Nov-12 18:08 
QuestionPizza order form Pin
Ritchie Vasquez11-Nov-12 6:59
memberRitchie Vasquez11-Nov-12 6:59 
AnswerRe: Pizza order form Pin
Richard MacCutchan11-Nov-12 7:21
mvpRichard MacCutchan11-Nov-12 7:21 
Questioncheck smtp connection before sending ? Pin
alejx9-Nov-12 10:02
memberalejx9-Nov-12 10:02 
AnswerRe: check smtp connection before sending ? Pin
Dave Kreskowiak9-Nov-12 10:52
mvpDave Kreskowiak9-Nov-12 10:52 
GeneralRe: check smtp connection before sending ? Pin
alejx9-Nov-12 14:47
memberalejx9-Nov-12 14:47 
GeneralRe: check smtp connection before sending ? Pin
Dave Kreskowiak9-Nov-12 15:15
mvpDave Kreskowiak9-Nov-12 15:15 
If you give the Connect method an invalid hostname and port that cannot be connected, it'll throw a SocketException with the error code in it.

if the hostname is a real server but nothing is listening on 25, it'll throw a SocketException.

If the hostname is real and 25 is blocked by a firewall, you'll get a SocketException.

Sooo... what's with the lonely little "throw" statement? Remove that and your code will work. That is, assuming that the SMTP server is listening on port 25...


The problem with this code is that you're only testing the server connection, not the ability to send email. Just because the server responds to a connection request does not mean that the credentials given for the SMTP account to send an email will work.

That's why I said the best way to check is to actually send an email.

QuestionAllow a Desktop app to check for JavaScript errors on given URL? Pin
pogowolf9-Nov-12 7:17
memberpogowolf9-Nov-12 7:17 
QuestionUsing large XML dataset efficiently Pin
DisIsHoody7-Nov-12 9:16
memberDisIsHoody7-Nov-12 9:16 
AnswerRe: Using large XML dataset efficiently Pin
David Mujica7-Nov-12 10:10
memberDavid Mujica7-Nov-12 10:10 
Questionvb.net Web Browser Control! how to automate when web page is using frames. Pin
Kieran Sloan7-Nov-12 5:27
memberKieran Sloan7-Nov-12 5:27 
AnswerRe: vb.net Web Browser Control! how to automate when web page is using frames. Pin
Zaf Khan26-Nov-12 3:13
memberZaf Khan26-Nov-12 3:13 
QuestionHelp with Error Message Pin
GeorgieMPorgie5-Nov-12 4:32
memberGeorgieMPorgie5-Nov-12 4:32 
AnswerRe: Help with Error Message Pin
Wayne Gaylard5-Nov-12 5:05
mentorWayne Gaylard5-Nov-12 5:05 
GeneralRe: Help with Error Message Pin
GeorgieMPorgie5-Nov-12 6:03
memberGeorgieMPorgie5-Nov-12 6:03 
GeneralRe: Help with Error Message Pin
Wayne Gaylard5-Nov-12 19:31
mentorWayne Gaylard5-Nov-12 19:31 
QuestionUse Reportvier to Show Table with Unknown Number of Columns Pin
Member 76634803-Nov-12 16:03
memberMember 76634803-Nov-12 16:03 
AnswerRe: Use Reportvier to Show Table with Unknown Number of Columns Pin
Dave Kreskowiak4-Nov-12 5:25
mvpDave Kreskowiak4-Nov-12 5:25 
AnswerRe: Use Reportvier to Show Table with Unknown Number of Columns Pin
Mycroft Holmes4-Nov-12 12:54
memberMycroft Holmes4-Nov-12 12:54 
QuestionHow can i retrieve image to pictureBox ? Pin
heinhtataung1-Nov-12 19:04
memberheinhtataung1-Nov-12 19:04 
AnswerRe: How can i retrieve image to pictureBox ? Pin
Eddy Vluggen2-Nov-12 1:57
memberEddy Vluggen2-Nov-12 1:57 
AnswerRe: How can i retrieve image to pictureBox ? Pin
SZLMCL7-Nov-12 0:20
memberSZLMCL7-Nov-12 0:20 
QuestionHow can i save image in my N-tier application? Pin
heinhtataung31-Oct-12 21:20
memberheinhtataung31-Oct-12 21:20 
AnswerRe: How can i save image in my N-tier application? Pin
Eddy Vluggen1-Nov-12 4:05
memberEddy Vluggen1-Nov-12 4:05 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 18 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid