I wanted to preselect a cell in a table. I put the code in App_Start. This caused an error dialog (see attachment (try Worpad or Word to read)) saying I couldn't do that and should move the code to the Form.Load event.
What Form.Load event?
In the designer, selecting the form and clicking on the Events menu option gives a drop down which does not include Load. Manually trying a sub "TheNameOfMyForm_Load" just gives me an uncalled sub.
Just in case the error text was inaccurate I tried looking for a method called Load instead, but....
In the code typing "TheNameOfMyForm." brings up a pop-up that does not include Load.
In the code typing "Form." brings up the same pop up.
Ignoring all that and typing a sub named "TheNameOfMyForm.Load" or "Form.Load" gives me a syntax error on the sub header line. Hardly, surprising, it just confirms the error report was correct in refering to an event. So that was a red herring.
The Help for Form also has no reference to a Load event.
I have another way of doing what I want, so no panic, but that still leaves the question...
What Form.Load???
Dang, I tried attaching a .rtf, then I tried a .doc for the error dialog, I can't see the attachment though. Oh well, just trust me then.
What Form.Load event?
In the designer, selecting the form and clicking on the Events menu option gives a drop down which does not include Load. Manually trying a sub "TheNameOfMyForm_Load" just gives me an uncalled sub.
Just in case the error text was inaccurate I tried looking for a method called Load instead, but....
In the code typing "TheNameOfMyForm." brings up a pop-up that does not include Load.
In the code typing "Form." brings up the same pop up.
Ignoring all that and typing a sub named "TheNameOfMyForm.Load" or "Form.Load" gives me a syntax error on the sub header line. Hardly, surprising, it just confirms the error report was correct in refering to an event. So that was a red herring.
The Help for Form also has no reference to a Load event.
I have another way of doing what I want, so no panic, but that still leaves the question...
What Form.Load???
Dang, I tried attaching a .rtf, then I tried a .doc for the error dialog, I can't see the attachment though. Oh well, just trust me then.
Last edited: