This commit is contained in:
JenneJ
2016-08-30 15:26:55 +02:00
parent eccb3f9dea
commit dd70c9e8de
6 changed files with 86 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
Imports System.ComponentModel
Public Class ClassAsyncSQL
Private sql As String
Public WithEvents bw As BackgroundWorker
Public dt As DataTable
Public Sub New(sqlCommand As String)
Me.bw = New BackgroundWorker()
bw.WorkerReportsProgress = False
bw.WorkerSupportsCancellation = False
Me.sql = sqlCommand
End Sub
Private Sub bw_DoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs) Handles bw.DoWork
Me.dt = ClassDatabase.Return_Datatable(Me.sql, "LoadEntityData - Get DTEntity")
End Sub
End Class