troubleshooting Question

Windows Form Load event is not triggered.

Avatar of omegaomega
omegaomegaFlag for Canada asked on
Visual Basic.NET.NET Programming
8 Comments2 Solutions201 ViewsLast Modified:
I have an old mostly VB based  Windows application I have been trying to move from 32 bit systems (W2K & XP) to 64 bit systems (W7 & W10).  I am using VS2015 for this work and have the configuration set to "Any CPU".

The main form of this application inherits directly from System.Windows.Forms.Form.   When I start the application the main form's Load event handler is not called.  Other form events (e.g. Activate, Resize) are called, but as these rely on objects defined during the load event they raise appropriate null value exceptions.

I have set breakpoints in the Load event handler to confirm that it really is not being invoked.

My searches have so far yielded only results that pertain to conflicts with missing data bindings.  There are no data bindings used within this application.

Any ideas about what might cause this lack of a load event trigger will be greatly appreciated, as will suggestions about how I might further diagnose this problem.

Thanks,
Randy
ASKER CERTIFIED SOLUTION
omegaomega
Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
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 2 Answers and 8 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