Setting Options

See Also2ZR3T15

You can use the commands on the Options menu to set new preferences or reset default values for the programming environment or for specific projects.  Programming environment options include the foreground and background colors in a Code windowJ73QNY, the number of spaces for the Tab key in a Code window, syntax checking, and whether variables must be declared before being referenced.  You can also set the number of horizontal and vertical grid lines on forms in design mode, and you can specify whether grid lines are visible and whether controls snap to the grid lines when placed on a form.

To set preferences for the programing environment

   1. From the Options menu, choose Environment.

   2. In the Setting combo box, select an option.

   3. In the text box portion of the Setting combo box, enter a new value.

   4. Choose OK.

 

Preferences for specific projects include a command-line argument setting to allow testing of command-line arguments for the application, specification of the name of the startup form for the application, and a specification for the application's Help file.

To set preferences for a specific project

   1. From the Options menu, choose Project.

   2. In the Setting combo box, select an option.

   3. In the text box portion of the Setting combo box, enter a new value.

   4. Choose OK.

 

You can also restore one, many, or all options to their original default values.

To restore selected preferences to default values

   1. From the Options menu, choose Environment or Project.

   2. In the Setting combo box, select an option or multiple options.

   3. Choose Reset.

 

To restore all preferences to default values

   1. From the Options menu, choose Environment or Project.

   2. Choose Reset All.

 


See Also

Help:

Environment Command (Options Menu)Z2Y68

Project Command (Options Menu)1RNJX6L

 

Programmer's Guide:

Chapter 2, "Creating Your First Visual Basic Application"