>My dear Professor,
>
>I refer to your following sentence
>
>"I told you to put this code in the form class's Init()."
>
>Is this form's Init method or any other thing.
>
>Please help
The form has a built-in method "Init", also called the Init() Event. Any code you put into the Init() Event will run automatically when the form opens.
You can access the Init() Event like this:
Open the desired form.
Give the command "View | Code".
Under "Object", make sure the form is selected. This is the object at the top of the hierarchy.
Under "Procedure", select "Init".
In the code window, write any code which you want to execte as soon as the form starts.
Instead of the second and third step, you can also double-click on the form background, but be careful not to click on any contained object.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)