Hello,
I have a winform with a button, that when clicked performs a number of commands and displays the results in a new window. I am looking to add a refresh button/timer on to the second form. So that the page can be refreshed/commands be resent directly from there.
The code of the commands I send, and am trying to refresh is below, but when run i receieve an unhandled excpetion error.
What would be the best way to perform the refresh, and how would i do this?
I have a winform with a button, that when clicked performs a number of commands and displays the results in a new window. I am looking to add a refresh button/timer on to the second form. So that the page can be refreshed/commands be resent directly from there.
The code of the commands I send, and am trying to refresh is below, but when run i receieve an unhandled excpetion error.
ForEach row AsDataGridViewRowIn DataGridViewView.Rows
Dim response1 AsObject = Nothing
m_plugin_services.DoCommandEx(m_token, _
"print ${" & row.Cells(2).Value & "}", response1)
Dim value1 AsObject = response1.ToString()
value1 = value1.Substring(0, value1.IndexOf(vbCr))
DataGridViewView.Rows.Add(
"joe1", value1, row.Cells(2).Value)
Next
What would be the best way to perform the refresh, and how would i do this?