I have 2 forms, form2 is loaded by a call in form 1 to the show method. Form2 loads but a lot of the code is not being executed including the load event. If I add a click event it executes?
Printable View
I have 2 forms, form2 is loaded by a call in form 1 to the show method. Form2 loads but a lot of the code is not being executed including the load event. If I add a click event it executes?
Found solution on thescripts.com. I must of accidentally screwed up the event handlers, probably by cutting and pasting.
Followed this and resolved:
The simplest solution is to
1) remove your load handler.
2) Double click on the form body to add a new load handler - with the
correct event/handler assoc.
3) copy the code from your routine to the new one
No, the simplest solution is to just add "Handles Me.Load" to the end of the method declaration.