How Does the object.Show() event work in VS2010 (VB.Net) work
Posted on 2013-01-14
I am not a trained programmer but have learnt on the job with VB6 (and other languages) . I supervised the writing of and have modified a VB6 enterprise program over the last 15 years. It is still currently in production and but can no longer be supported in the direction the company is moving. OS upgrades are slowly killing it.
I converted the program to VS2010, and whilst I can fix most control issues am having problems in displaying called forms from the mdiform that is master form for the program. I had to recreate the mdiform from scratch to ensure it worked OK. (Just menubar, toolbar and status bar controls.)
Normally in VB6 when I hit a .show() event I was able to step into the called form and step through the code, however in VS2010 when I hit the event, no form is displayed and often as not the mdi form also shuts down.
When I recreate a form in VS2010 it sometimes can be shown but again a 50-50 success rate. Can someone explain to me how the show() event works as not much sensible information on the internet. Is there some simple solution to showing the called forms as I have 77 forms to recreate an 98 CR reports to re-engineer? Or would praying be better?
I have not attached any code yet as the data is too big.