VB Code:
  1. Public Class Form1
  2.     Inherits System.Windows.Forms.Form
  3.  
  4.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  5.  
  6.     End Sub
  7.  
  8.     Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
  9.  
  10.     End Sub
  11. End Class

An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll

Additional information: Error creating window handle.