Hi all
I'm trying to do this in a multi-thread
I created a delegate and the AddressOf sub
When I try to execute the code
I get 'System.Reflection.TargetParameterCountException'
I'm assuming that I'm not specifying the array dimensions correctly or something
Any thoughts?
Thanks!
-Justin
I'm trying to do this in a multi-thread
VB.NET:
DataGridView.Rows.Add({Column1, Column2})
I created a delegate and the AddressOf sub
VB.NET:
Private Delegate Sub UpdateDataGridViewCallback(ByVal text As String())
Private Sub UpdateDataGridView(ByVal text As String())
DataGridView.Rows.Add(text)
End Sub
When I try to execute the code
VB.NET:
UpdateDataGridView.Invoke(New UpdateDataGridViewCallback(AddressOf UpdateDataGridView), {Column1, Column2})
I get 'System.Reflection.TargetParameterCountException'
I'm assuming that I'm not specifying the array dimensions correctly or something
Any thoughts?
Thanks!
-Justin