troubleshooting Question

getting an error when switching between programs and when running exe

Avatar of apuma
apumaFlag for United States of America asked on
Visual Basic.NET
18 Comments1 Solution220 ViewsLast Modified:
hello experts whenever i switch to another program window then return to the project i get this error
or if i try to execute the .exe file  

An unhandled exception of type 'System.NullReferenceException' occurred in

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

the debugger then points to the first line

Public Class Form1

of my project.

i doublechecked that form1 is set as the default form    

any ideas on what could cause this?  
thanks in advance
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 18 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros