G
Guest
Hi all,
I'm getting an error messagebox that displays for less than a second and
disappers. I found the line that causing this error, and enclosed in a try
block, but I'm not able to catch this error and hide it from user to see it.
(I wasn't either able to see the error through Console.WriteLine). This
message has three buttons: Details, Quit, and Continue. I cannot read the
message and not able to catch it. Is there a way to catch this error?So, the
user wouldn't see the error. The application runs after this message with no
problem, and doesn't crash.
Code:
MyDataGrid.DataSource = ds.Tables("Table1")
'ds(dataset )is populated and always has rows. MyDataGrid is a customized
data grid control. I don't have any problem when assigning DataSource
property of the data grid for the first time, but after adding, deleting
records and trying to refresh the data grid control this line causes the
error message to be displayed.
Thanks for your input.
Roy
I'm getting an error messagebox that displays for less than a second and
disappers. I found the line that causing this error, and enclosed in a try
block, but I'm not able to catch this error and hide it from user to see it.
(I wasn't either able to see the error through Console.WriteLine). This
message has three buttons: Details, Quit, and Continue. I cannot read the
message and not able to catch it. Is there a way to catch this error?So, the
user wouldn't see the error. The application runs after this message with no
problem, and doesn't crash.
Code:
MyDataGrid.DataSource = ds.Tables("Table1")
'ds(dataset )is populated and always has rows. MyDataGrid is a customized
data grid control. I don't have any problem when assigning DataSource
property of the data grid for the first time, but after adding, deleting
records and trying to refresh the data grid control this line causes the
error message to be displayed.
Thanks for your input.
Roy