Hans Dingemans
11/9/2002 10:15:00 AM
The sample runs fine when I modify the declaration into:
Public Shadows Sub Dispose()
But a breakpoint set on the first statement and run the sample shows it
never gets called, so anyone an idea what the code intents to achieve?
Thanx,
Hans
"Hans Dingemans" <Hans.Dingemans@globalknowledge.net> schreef in bericht
news:OAu9fk1hCHA.1688@tkmsftngp08...
> Hello,
>
> Got Visual Studio installed on two machines.
> I wanna run the .NET Framework WinForms samples ButtonCtl. Tried on both a
> Windows XP Home and Windows 2000 Server system and they crash with output
as
> below
>
> An unhandled exception of type 'System.TypeLoadException' occurred in
> Unknown Module.
>
> Additional information: Declaration referenced in a method implementation
> can not be a final method. Type: ButtonCtl. Assembly: Dispose.
>
> When commenting out the code below the program runs fine. Any comments?
>
> 'Form overrides dispose to clean up the component list.
> Public Overloads Overrides Sub Dispose()
> MyBase.Dispose()
> components.Dispose()
> End Sub
>
>
>
> Thanx,
>
> Hans
>
>
>