这听起来可能很愚蠢,但我无法访问另一个线程中的进度条。是的,我已经调用了它。看看这个:
Delegate Sub ProgressBarCallback(ByVal value As Integer, ByVal max As Integer)
Sub updateProgressBarCurrent(ByVal value As Integer, ByVal max As Integer)
    If Me.progressBar_currentState.InvokeRequired = True Then
        Dim d As New ProgressBarCallback(AddressOf updateProgressBarCurrent)
        Me.progressBar_currentState.Invoke(d, New Object() {value, max})
    Else
        progressBar_currentState.Maximum = max
        If value < max Then
            progressBar_currentState.Value = value
            progressBar_currentState.Refresh()
        End If
    End If
End Sub
我正在从类中的方法调用 updateProgressBarCurrent()。看看调试器:

ProgressBar 只是不做任何事情。这是因为我从我的 databaseHandler 类中的方法调用子 updateProgressBarCurrent 吗?我怎样才能解决这个问题?提前致谢。