Click here to Skip to main content
15,921,837 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom19-Jan-11 9:02
The Mighty Atom19-Jan-11 9:02 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Vika Dev1-Feb-11 16:39
Vika Dev1-Feb-11 16:39 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom2-Feb-11 5:35
The Mighty Atom2-Feb-11 5:35 
QuestionMultiple USB Barcode Scanners Pin
KCDude10-Jan-11 10:41
KCDude10-Jan-11 10:41 
AnswerRe: Multiple USB Barcode Scanners Pin
Luc Pattyn10-Jan-11 11:03
sitebuilderLuc Pattyn10-Jan-11 11:03 
AnswerHIDlibrary Pin
David Mujica11-Jan-11 3:30
David Mujica11-Jan-11 3:30 
GeneralRe: HIDlibrary Pin
Vika Dev12-Jan-11 12:20
Vika Dev12-Jan-11 12:20 
GeneralRe: HIDlibrary - New location at GitHub Pin
David Mujica18-Jan-11 6:18
David Mujica18-Jan-11 6:18 
QuestionMessage Removed Pin
10-Jan-11 8:25
KCDude10-Jan-11 8:25 
AnswerRe: Bar Code Scanner Implementation Pin
Luc Pattyn10-Jan-11 8:44
sitebuilderLuc Pattyn10-Jan-11 8:44 
GeneralRe: Bar Code Scanner Implementation Pin
KCDude10-Jan-11 8:48
KCDude10-Jan-11 8:48 
GeneralRe: Bar Code Scanner Implementation Pin
Luc Pattyn10-Jan-11 8:53
sitebuilderLuc Pattyn10-Jan-11 8:53 
GeneralRe: Bar Code Scanner Implementation Pin
KCDude10-Jan-11 9:01
KCDude10-Jan-11 9:01 
AnswerRe: Bar Code Scanner Implementation Pin
Luc Pattyn10-Jan-11 9:21
sitebuilderLuc Pattyn10-Jan-11 9:21 
GeneralRe: Bar Code Scanner Implementation Pin
KCDude10-Jan-11 9:24
KCDude10-Jan-11 9:24 
GeneralRe: Bar Code Scanner Implementation Pin
Luc Pattyn10-Jan-11 9:54
sitebuilderLuc Pattyn10-Jan-11 9:54 
GeneralRe: Bar Code Scanner Implementation Pin
KCDude10-Jan-11 9:59
KCDude10-Jan-11 9:59 
GeneralRe: Bar Code Scanner Implementation Pin
Luc Pattyn10-Jan-11 10:14
sitebuilderLuc Pattyn10-Jan-11 10:14 
QuestionVB.NET RunWorkerCompleted not working Pin
Peter Schwennesen10-Jan-11 3:53
Peter Schwennesen10-Jan-11 3:53 
Hi!

I have some problems with the BackGroundWorker. The code can make the DoWork fire, but when the DoWork complets the RunWorkerComlpeted do not fire.
What is wrong?

Peter Schwennesen

Public Class Test

    Public WithEvents BGW As System.ComponentModel.BackgroundWorker
    Private Test As Boolean

    Public Function FindAllMachines() As Boolean
        Test = False
        BGW = New System.ComponentModel.BackgroundWorker
        AddHandler BGW.DoWork, AddressOf BGW_DoWork
        AddHandler BGW.RunWorkerCompleted, AddressOf BGW_RunWorkerCompleted
        BGW.RunWorkerAsync()

        System.Threading.Thread.Sleep(30000)

        Return Test
    End Function

    Private Sub BGW_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
        e.Result = True
    End Sub

    Private Sub BGW_RunWorkerCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs)
        Test = True
    End Sub

End Class

AnswerRe: VB.NET RunWorkerCompleted not working Pin
Luc Pattyn10-Jan-11 4:22
sitebuilderLuc Pattyn10-Jan-11 4:22 
AnswerRe: VB.NET RunWorkerCompleted not working Pin
Dave Kreskowiak10-Jan-11 4:22
mveDave Kreskowiak10-Jan-11 4:22 
GeneralRe: VB.NET RunWorkerCompleted not working Pin
Аslam Iqbal11-Jan-11 3:11
professionalАslam Iqbal11-Jan-11 3:11 
Questionproblem to translate C# to VB .NET Pin
Denis99999-Jan-11 23:20
Denis99999-Jan-11 23:20 
AnswerRe: problem to translate C# to VB .NET Pin
N a v a n e e t h10-Jan-11 0:14
N a v a n e e t h10-Jan-11 0:14 
GeneralRe: problem to translate C# to VB .NET Pin
Denis999910-Jan-11 1:00
Denis999910-Jan-11 1:00 

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.