Click here to Skip to main content
15,906,097 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: get price value in descending order which is in xml Pin
Mycroft Holmes8-Jun-08 14:31
professionalMycroft Holmes8-Jun-08 14:31 
QuestionEnable "Show window contents while dragging" option in code??? Pin
puffdaddy4115-Jun-08 19:39
puffdaddy4115-Jun-08 19:39 
QuestionHow can I make a event raise and update controls on a form from an asynchronous socket ? Pin
Noctris5-Jun-08 12:16
Noctris5-Jun-08 12:16 
AnswerRe: How can I make a event raise and update controls on a form from an asynchronous socket ? Pin
nlarson115-Jun-08 15:50
nlarson115-Jun-08 15:50 
QuestionImage in a datagrid ASP.Net VB Pin
eriditu5-Jun-08 12:14
eriditu5-Jun-08 12:14 
AnswerRe: Image in a datagrid ASP.Net VB Pin
Christian Graus5-Jun-08 17:20
protectorChristian Graus5-Jun-08 17:20 
QuestionFilterFor menu option in VBA runtime Pin
Member 14787615-Jun-08 8:28
Member 14787615-Jun-08 8:28 
QuestionMailing send error due to ... !!! Pin
John Kh5-Jun-08 8:05
John Kh5-Jun-08 8:05 
Hello ,

I am using this code to send an E-mail from a Gmail account :
Dim SmtpServer As New SmtpClient()
SmtpServer.Credentials = New Net.NetworkCredential("xxx@gmail.com", "password")
'SmtpServer.Credentials = New Net.w
SmtpServer.Port = 587
SmtpServer.Host = "smtp.gmail.com"
SmtpServer.EnableSsl = True

mail = New MailMessage()
Dim addr() As String = TextBox1.Text.Split(",")
Try
mail.From = New MailAddress("bankersystem@gmail.com", "Web Developers", System.Text.Encoding.UTF8)

Dim i As Byte
For i = 0 To addr.Length - 1
mail.To.Add(addr(i))
Next
mail.Subject = TextBox3.Text
mail.Body = TextBox4.Text
If ListBox1.Items.Count <> 0 Then
For i = 0 To ListBox1.Items.Count - 1
mail.Attachments.Add(New Attachment(ListBox1.Items.Item(i)))
Next
End If
mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure
mail.ReplyTo = New MailAddress(TextBox1.Text)
SmtpServer.Send(mail)
Catch ex As Exception
MsgBox(ex.ToString())
End Try

When I use the broadband connection at home , all work fine . However when I use the wireless connection at uni , It gives me always an error that it cannot connect to host and cant send the message !!!

Any idea ?!

J ,
AnswerRe: Mailing send error due to ... !!! Pin
Fu Manchu5-Jun-08 10:10
Fu Manchu5-Jun-08 10:10 
GeneralRe: Mailing send error due to ... !!! Pin
John Kh5-Jun-08 19:02
John Kh5-Jun-08 19:02 
QuestionNavigation Pane Pin
felipeoroz5-Jun-08 5:16
felipeoroz5-Jun-08 5:16 
AnswerRe: Navigation Pane Pin
Christian Graus5-Jun-08 5:42
protectorChristian Graus5-Jun-08 5:42 
QuestionGetting error while using WSAStartup method Pin
Chaitanya kumar CVSS5-Jun-08 1:54
Chaitanya kumar CVSS5-Jun-08 1:54 
Questiondisplay information on list box when treeview node is selected Pin
Mamphekgo Bahula5-Jun-08 1:24
Mamphekgo Bahula5-Jun-08 1:24 
AnswerRe: display information on list box when treeview node is selected Pin
Ashfield5-Jun-08 3:21
Ashfield5-Jun-08 3:21 
AnswerRe: display information on list box when treeview node is selected Pin
Anubhava Dimri5-Jun-08 18:44
Anubhava Dimri5-Jun-08 18:44 
QuestionHOW TO CREATE YOUR OWN MEDIA PLAYER!!!!!!!!!!!!!!!! Pin
spinky5-Jun-08 1:12
spinky5-Jun-08 1:12 
AnswerRe: HOW TO CREATE YOUR OWN MEDIA PLAYER!!!!!!!!!!!!!!!! Pin
Johan Hakkesteegt5-Jun-08 3:16
Johan Hakkesteegt5-Jun-08 3:16 
GeneralRe: HOW TO CREATE YOUR OWN MEDIA PLAYER!!!!!!!!!!!!!!!! Pin
MarkB7775-Jun-08 21:05
MarkB7775-Jun-08 21:05 
AnswerRe: HOW TO CREATE YOUR OWN MEDIA PLAYER!!!!!!!!!!!!!!!! Pin
Ashfield5-Jun-08 3:24
Ashfield5-Jun-08 3:24 
AnswerRe: HOW TO CREATE YOUR OWN MEDIA PLAYER!!!!!!!!!!!!!!!! Pin
Christian Graus5-Jun-08 4:10
protectorChristian Graus5-Jun-08 4:10 
GeneralRe: HOW TO CREATE YOUR OWN MEDIA PLAYER!!!!!!!!!!!!!!!! Pin
MarkB7775-Jun-08 21:07
MarkB7775-Jun-08 21:07 
QuestionRunning VB.Net with Crystal Reports load problem Pin
Central_IT4-Jun-08 23:53
Central_IT4-Jun-08 23:53 
AnswerRe: Running VB.Net with Crystal Reports load problem Pin
ChandraRam5-Jun-08 0:02
ChandraRam5-Jun-08 0:02 
GeneralRe: Running VB.Net with Crystal Reports load problem Pin
Central_IT5-Jun-08 0:09
Central_IT5-Jun-08 0:09 

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.