Represents a window or dialog box that makes up an application's user interface.


The Form object supports dynamic (expando) properties. However please note that you cannot use existing property, method or event names as expando names. Try to devise a unique naming scheme for expandos to avoid name conflicts today and in the future.


The following example creates a form and calls the Show method to display it. The example sets the Resizable, MinimizeBox and MaximizeBox properties to change the appearance and functionality of the form to a dialog box. The example also creates a button that when clicked, closes the form.

Break On $System = CreateObject("Kixtart.System") $Form = $System.Form() $Form.Text = "My Form" $Form.MaximizeBox = "False" $Form.MinimizeBox = "False" $Form.Resizable = 0 ; Create a button ... $Button1 = $Form.Controls.Add("Button") $Button1.Text = "OK" $Button1.Center $Button1.OnClick = "Button1_Click()" ; Center and show the form... $Form.Center $Form.Show() While $Form.Visible $=Execute($Form.DoEvents) Loop Exit 1 Function Button1_Click() $Form.Hide EndFunction

The CHM file was converted to HTML by chm2web software.