を認識していない私持ってVB.net WPFプロジェクトにバックグラウンドワーカーを追加し、次のコード:WPFの背景の労働者は、労働者オブジェクト
Imports System
Imports System.ComponentModel
Imports System.ComponentModel.BackgroundWorker
Imports System.IO
Imports System.Threading
Imports System.Net
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Data
Imports System.Windows.Media
Imports System.Windows.Media.Animation
Imports System.Windows.Navigation
Imports System.ServiceProcess
Partial Public Class Window1
Public Sub New()
MyBase.New()
Me.InitializeComponent()
End Sub
End Class
Public Class Window1
Dim worker As New BackgroundWorker
Private Sub worker_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.BackgroundWorker) Handles worker.DoWork
End Sub
End Class
そして私DoWorkワーカーイベントのために、次のエラーを取得:
をHandles句には、包含型またはその基本型のいずれかで定義されたWithEvents変数が必要です。
Event宣言で何かが見つからないようですが、見つからないようです。
アイデア?
それは実際に働いたこと。どうもありがとう。コードの残りの部分が今すぐ反応するかどうかはわかります。ありがとう! – TuxMeister