asked on
ASKER
bgWorker.CancelAsync();
Dim BackGroundWorker bgWorker
Public FormB(BackGroundWorker worker)
Begin
Me.bgWorker = worker
End
ASKER
Imports System.ComponentModel
Public Class FProcessing
Private Sub FProcessing_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FParse.Close()
Timer1.Interval = 1000
Timer1.Start()
End Sub
Private Sub Timer1_Timer(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label6.Text = myDLL.PUBLICVARIABLES.VAR1 Label3.Visible = Not Label3.Visible
ProgressBar1.Maximum = 100 + myDLL.PUBLICVARIABLES.tot
ProgressBar1.Value = 1 + myDLL.PUBLICVARIABLES.cpa
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'If bg.WorkerSupportsCancellation = True Then
'bw.CancelAsync()
'End If
End Sub
Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.
TRUSTED BY
Why not add the backgroundworker on FormB?