Click here to Skip to main content
15,908,834 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VBA: Searching for a range in a worksheet. [modified] Pin
cyrossis11-Jan-11 18:44
cyrossis11-Jan-11 18:44 
QuestionVBA FTP Pin
Dalek Dave10-Jan-11 12:41
professionalDalek Dave10-Jan-11 12:41 
AnswerRe: VBA FTP Pin
Luc Pattyn10-Jan-11 13:11
sitebuilderLuc Pattyn10-Jan-11 13:11 
GeneralRe: VBA FTP Pin
Dalek Dave10-Jan-11 13:30
professionalDalek Dave10-Jan-11 13:30 
GeneralRe: VBA FTP Pin
Luc Pattyn10-Jan-11 14:16
sitebuilderLuc Pattyn10-Jan-11 14:16 
AnswerRe: VBA FTP Pin
shreekar18-Jan-11 5:33
shreekar18-Jan-11 5:33 
GeneralRe: VBA FTP Pin
Dalek Dave18-Jan-11 5:37
professionalDalek Dave18-Jan-11 5:37 
Question[VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom10-Jan-11 12:09
The Mighty Atom10-Jan-11 12:09 
So i have dll project. In its code, i have a bunch of functions i use very often in many of my forms applications. One of them is a Bug Reporter class. When called, a dialog appears with some controls. When the user has filled all the textboxes and made valid combobox selections, you click the Submit button which submits the information to my email address. But this only seems to work sometimes. I can't figure out why.

I've made a simple forms application for others to try and test the Bug Reporter. I've posted it on another website and it only seems to work for some of my testers, others get errors. Here are some screenshots:

http://entrod.sp-website.net/images/bug.jpg[^]
http://img638.imageshack.us/img638/5442/96651911.png[^]

So im baffled. What can i do to make this work everytime? I mean, what's the point of having a bug reporter if the bug reporter itself doesn't work properly? Confused | :confused:

Here my email code, if it's needed:

Private Sub bgwSender_DoWork() Handles bgwSender.DoWork

         mErrorOccured = False

         Try
             mm = New MailMessage
             With mm
                 .From = New MailAddress(tbEmail.Text)
                 .To.Add("My email address goes here")
                 .Subject = Me.Text
                 .Body = _
                     tbProblem.Text & ControlChars.NewLine & ControlChars.NewLine & _
                     "Bug type: " & cbbBugType.SelectedItem & ControlChars.NewLine & _
                     "Windows version: " & cbbWindowsVersion.SelectedItem & ControlChars.NewLine
                 .IsBodyHtml = False
             End With
             smtp = New SmtpClient
             smtp.Host = "My SMTP server goes here"
             smtp.Send(mm)
         Catch ex As Exception
             MessageBox.Show(ex.Message)
             mErrorOccured = True
             mErrorMessage = ex.ToString
         End Try

       End Sub

Virtual Space Shuttle Astronaut

AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
Luc Pattyn10-Jan-11 12:48
sitebuilderLuc Pattyn10-Jan-11 12:48 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom10-Jan-11 14:03
The Mighty Atom10-Jan-11 14:03 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
Luc Pattyn10-Jan-11 14:10
sitebuilderLuc Pattyn10-Jan-11 14:10 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
Estys10-Jan-11 23:38
Estys10-Jan-11 23:38 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Dalek Dave11-Jan-11 0:02
professionalDalek Dave11-Jan-11 0:02 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Estys11-Jan-11 0:08
Estys11-Jan-11 0:08 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Dalek Dave11-Jan-11 0:30
professionalDalek Dave11-Jan-11 0:30 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Luc Pattyn11-Jan-11 1:29
sitebuilderLuc Pattyn11-Jan-11 1:29 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Fabio Franco12-Jan-11 0:42
professionalFabio Franco12-Jan-11 0:42 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
_Erik_11-Jan-11 1:43
_Erik_11-Jan-11 1:43 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom11-Jan-11 5:29
The Mighty Atom11-Jan-11 5:29 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Luc Pattyn11-Jan-11 5:42
sitebuilderLuc Pattyn11-Jan-11 5:42 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Simon_Whale11-Jan-11 5:53
Simon_Whale11-Jan-11 5:53 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom11-Jan-11 7:18
The Mighty Atom11-Jan-11 7:18 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Asday24-Jan-11 0:25
Asday24-Jan-11 0:25 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Tom Chantler11-Jan-11 21:54
professionalTom Chantler11-Jan-11 21:54 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
allodoxaphobia11-Jan-11 20:10
allodoxaphobia11-Jan-11 20:10 

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.