Unhandled exception in system.windows.forms.dll (in my main form) - argh 
Author Message
 Unhandled exception in system.windows.forms.dll (in my main form) - argh

Hi everyone,

As a new user of VB.Net, I'm getting a rather
discouraging error in all of the sample apps that I run
(including ones downloaded directly from Microsof).  The
only time I don't get this exception thrown is on the
most basic of Windows applications (the app shell
generated by the application wizard).  Here is the
exception I'm seeing:

A first chance exception of
type 'System.NullReferenceException' occurred in

Additional information: Object reference not set to an
instance of an object.

This exception is thrown on the first line of code in my
main form: "Public Class frmMain" (although it obviously
doesn't seem to matter what my form name is).

As I said, I've run *several* of the so-called "test
applications" (since I want to learn) but they keep
returning this exception.  I've installed the .NET
Framework sp2 and any other updates I can find on the
msdn download site, but nothing seems to help.

Hope someone has the answer, as I'm really in the dark on
this one - especially being so new to this environment.

I'd be happy to provide any other info as needed,
although I don't know if there's much more I could give.


Sun, 05 Jun 2005 19:49:52 GMT  
 [ 1 post ] 

 Relevant Pages 

1. exception on form.show (vb.Net windows forms)

2. Unhandled exception in Visdata.exe(rpcrt4.dll)

3. VBScript "Unhandled Exception" MSO9.DLL W2k

4. unhandled exception jet40.dll

5. Unhandled exception in Visdata.exe(rpcrt4.dll)

6. Unhandled exception in Visdata.exe(rpcrt4.dll)

7. Open form, close form, open form = disposed object exception

8. Error in System.Windows.Forms.Form.UpdateLayered()

9. VB.NET - Subclassing System.Windows.Forms.Form?

10. Microsoft Forms 2.0 Object Library (c:\windows\system\FM20.DLL)

11. An unhandled exception of type 'System.Data.NoNullAllowedException' occurred in system.data.dll

12. Modeless child form and main window focus


Powered by phpBB® Forum Software