Click here to Skip to main content
15,896,154 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
GeneralRe: problem to translate C# to VB .NET Pin
Luc Pattyn10-Jan-11 2:45
sitebuilderLuc Pattyn10-Jan-11 2:45 
GeneralRe: problem to translate C# to VB .NET Pin
Denis999910-Jan-11 3:28
Denis999910-Jan-11 3:28 
GeneralRe: problem to translate C# to VB .NET Pin
Simon_Whale10-Jan-11 3:34
Simon_Whale10-Jan-11 3:34 
AnswerRe: problem to translate C# to VB .NET Pin
Dalek Dave10-Jan-11 3:40
professionalDalek Dave10-Jan-11 3:40 
GeneralRe: problem to translate C# to VB .NET Pin
Simon_Whale10-Jan-11 3:41
Simon_Whale10-Jan-11 3:41 
GeneralRe: problem to translate C# to VB .NET Pin
Dalek Dave10-Jan-11 3:46
professionalDalek Dave10-Jan-11 3:46 
GeneralRe: problem to translate C# to VB .NET Pin
Denis999910-Jan-11 4:13
Denis999910-Jan-11 4:13 
AnswerRe: problem to translate C# to VB .NET Pin
Ray Cassick10-Jan-11 6:42
Ray Cassick10-Jan-11 6:42 
QuestionError: Length of Data to decrypt is invalid Pin
crain19819-Jan-11 5:10
crain19819-Jan-11 5:10 
AnswerRe: Error: Length of Data to decrypt is invalid Pin
crain19819-Jan-11 5:11
crain19819-Jan-11 5:11 
AnswerRe: Error: Length of Data to decrypt is invalid Pin
Simon_Whale9-Jan-11 22:06
Simon_Whale9-Jan-11 22:06 

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.