I have created a datagrid that inherits from DataGrid:
Public Class YnpDataGrid
I'm having strange problems with this ancestor; when I try to open it in the designer, it doesn't display my class but shows a form with the error 'The variable 'ex' is either undeclared or was never assigned'
I have checked my code, and I only use the 'ex' variable in the 'Try' functions:
... some code
Catch ex As Exception
This seems to be a very stupid error, but then, vb.net 2005 is the worst development language I have ever encountered (and I have encountered a lot of them).
Anyone knows how to solve this ? I can of course remove the 'try' functions, but then my program could crash without me knowing what is going on.
Thx for your help