Ive been doing that for every part that it throws the exception but now ive came to a stop:
vb Code:
Private Sub InstallLog(ByVal strLog As String) If Me.txtInstallLog.InvokeRequired Then Me.txtInstallLog.Invoke(New MethodInvoker(AddressOf InstallLog)) Else Try txtInstallLog.Text = txtInstallLog.Text & strLog & vbCrLf txtInstallLog.SelectionStart = txtInstallLog.Text.Length Catch ex As Exception MsgBox(ex.ToString) End Try End If End Sub
The error i get is "Method 'Private Sub InstallLog(strLog As String)' does not have a signature compatible with delegate 'Delegate Sub MethodInvoker()'.
" and it give me the error in this line "Me.txtInstallLog.Invoke(New MethodInvoker(AddressOf InstallLog))"




Reply With Quote