The Form Load Event in VB . NET. An important event you’ll want to write code for is the Form Load event. You might want to, for example, set the Enabled property of a control to False when a form loads. … You can do all this from the Form Load event.
How do I create a form load event?
Load += new EventHandler(ProgramViwer_Load); A third way using the designer (probably the quickest) – when you create a new form, double click on the middle of it on it in design mode. It’ll create a Form load event for you, hook it in, and take you to the event handler code.
How do you load a form in Access?
- Click the File tab, and then under Help, click Options.
- Click Current Database.
- Under Application Options, in the Display Form list, select the form that you want to display when the database starts.
- Click OK, and then close and reopen the database to display the startup form.