K
Kohinoor Basu
Hi,
I have created a new class called MyToolbarButton which inherits from
ToolbarButton class.
I add a new toolbar into a form and add some buttons to that toolbar. Then
I manually change the declaration of ToolBarbutton in the form to
MyToolbarButton. The code compiles fine. But when I try to execute the
code I get the following exception.
===============================================================
An unhandled exception of type 'System.TypeLoadException' occurred in
WindowsApplication2.exe
Additional information: Declaration referenced in a method implementation
can not be a final method. Type: WindowsApplication2.MyToolBarButton.
Assembly: Dispose.
===============================================================
Anybody has any idea why I am getting this error.
Kohinoor Basu
I have created a new class called MyToolbarButton which inherits from
ToolbarButton class.
I add a new toolbar into a form and add some buttons to that toolbar. Then
I manually change the declaration of ToolBarbutton in the form to
MyToolbarButton. The code compiles fine. But when I try to execute the
code I get the following exception.
===============================================================
An unhandled exception of type 'System.TypeLoadException' occurred in
WindowsApplication2.exe
Additional information: Declaration referenced in a method implementation
can not be a final method. Type: WindowsApplication2.MyToolBarButton.
Assembly: Dispose.
===============================================================
Anybody has any idea why I am getting this error.
Kohinoor Basu