Overriding AfterShellCreated() with VB.NET

Topics: CAB & Smart Client Software Factory
Oct 22, 2005 at 10:28 AM
originally posted by: DLorenz

Whenever I try overriding AfterShellCreated in VB.NET, it gives me this error when I try to run it (It compiles fine):

Type Shell.ShellApplication' from assembly 'Shell, Version=, Culture=neutral, PublicKeyToken=null' tried to override method 'AfterShellCreated' but does not implement or inherit that method.

This is how the class looks:

Public Class ShellApplication
Inherits FormShellApplication(Of MainMenuWorkItem, ShellForm)

Private Shared _app As ShellApplication

<STAThread()> _
Public Shared Sub Main()
_app = New ShellApplication
End Sub

Protected Overrides Sub AfterShellCreated()
End Sub
End Class

Have any idea?
Oct 22, 2005 at 10:41 AM
originally posted by: TheJet

It looks like this is a bug in the .NET 2.0 Framework. It does effect the Aug CTP release, but it may not effect the RC and should not effect the final build.

Ref: http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=5943
Oct 23, 2005 at 4:03 AM
originally posted by: jburkholder

It works correctly in RC1 but not Beta 2.