Program Options: Common

This section contains settings in regards to generation of source code using form.suite4.net.

It is subdivided in the following areas:

Code Generation

Code Generation Options

Back to top

Data Binding / Data Initialization Options

The settings available here apply to binding business classes to forms as described in Working With Business Classes.

Back to top

Code View

Check the following if you want the text used as a comment during code generation

In this section you can further customize the generated code, although the changes you make here will not affect the code's functionality. The settings provided are merely intended to organize the code. If you select any of the checkboxes below the "Toggle all" button, the code output will contain additional comments such as //end try ( C#) or 'End try ( Visual Basic .NET) after a try/catch block is complete. This is a convenience feature mainly targeted at C# programmers to increase code readablility.

Activating the Add regions to type level code objects checkbox will add #region/#endregion (C#) or #Region/#End Region (VB.NET) preprocessor directives to the code output, as illustrated by the following excerpt from the InitializeComponent method of a sample form:

#region txtCountry 
this.txtCountry.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
this.txtCountry.ForeColor = System.Drawing.Color.Black;
this.txtCountry.Location = new System.Drawing.Point(80, 114);
this.txtCountry.Name = "txtCountry";
this.txtCountry.Size = new System.Drawing.Size(160, 20);
this.txtCountry.TabIndex = 22;
this.txtCountry.Text = "Country";
#endregion

The initialization of the TextBox txtCountry is wrapped in a region, as are the initializations of all other controls (not shown here).

Back to top

Color settings for code viewing

The settings here apply to the code generation preview window (which is available through the Form Designer's main menu) and are self-explanatory. Change the color of various code elements as you see fit or accept the defaults.

Back to top