Jump to content

Form (programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ed Poor (talk | contribs) at 19:07, 14 November 2006 (Web Forms application, web form). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In component-based programming (Visual Basic, .NET WinForms, and Delphi), a form is an easy way to create a GUI window. A form contains components and controls, which are a high-level representation of standard GUI widgets; it's easier to manipulate the high-level wrappers than to deal with the underlying API.

At design time, you place visual controls (buttons, text boxes, and the like) and non-visual components (timers, database connections, and so on) on the form. You move and size these controls and components with a mouse, and set their properties and event handlers with a special grid.

At runtime, automatically generated code creates instances of these controls and components, and sets their properties for you.

See: