*Properties & Events*

Back to the start


Add
AddCol
AddRow
BringToFront
CancelClose
CaseSensitive
Cell
ColCount
ColName
ColNumber
ColWidth
Circle
Close
Close-Calendar
Close Event
Color
Checked
Clear
ClearTable
Click
Count
DaysString
Dispose
DrawImage
DrawString
DropDown Event
Enabled
FCircle
FDrawImage
FDrawString
FErase
FGetPixel
File
Filter-Dialog
Filter
FirstDay
FLine
Focus
FontColor
FontSize
ForeLayer
Format
FPolygon
GetPixel
GotFocus Event
Height
HeaderColor
HeaderFontColor
HeaderVisible
IgnoreKey
ILAdd
ILHeight
ILItem
ILWidth
Image
Increment
IndexOf
Insert
Interval
Item
KeyPress
Left
Line
LinesColor
LoadCSV
LoadXML
LoadPicture
LostFocus Event
Maximum
Minimum
Mode
MouseDown Event
MouseMove
MouseUp
MultiLine
Name
Polygon
Pixel
Refresh
Remove
RemoveAt
RemoveCol
RemoveRow
Reverse
RowCount
ScrollToCaret
SaveCSV
SaveXML
SelectCell
SelectedCol
SelectedRow
SelectedIndex
SelectedIndexChanged
SelectionChangedTable
SelectionStart
SelectionLength
Show
Show-Dialog
Sort
TableSort
Text
Tick Event
Top
Transparent
Value
Value-Calendar
ValueChanged Event
Visible
Width




Add Top

Adds an item at the end of a list.
Syntax: Add (Value)
Example: ComboBox1.Add ("Lemons")


AddCol Top

Adds a new column to a Table.
Each column can store either string data (letters and numbers) or numbers only.
To sort and filter data as numbers, column type must be cNumber.
Syntax: AddCol (Column Type, Column Name, Width [,Unique])
Column Type - cString or cNumber
Unique - If Unique is set to true, each datum in this column must be unique (like an ID).
Example:
Table1.AddCol (cNumber, "ID", 50, True)
Table1.AddCol (cString, "Name", 50)
Table1.AddRow (234564, "John")


AddRow Top

Adds a new row to a Table.
Syntax: AddRow ([Value1, Value2,...])
If the number of values is less than the number of columns, then empty cells will be added.
Example:
Table1.AddCol (cNumber, "ID", 50, True)
Table1.AddCol (cString, "Name", 50)
Table1.AddRow (234564, "John")


ILAdd Top

Adds a new image to an ImageList.
Syntax: Add (Image)
Examples:
ImageList1.Add (Button1.Image)
ImageList1.Add ("Smile.gif")


BringToFront Top

Makes a control appear above other controls (in case it was covered).
Syntax: BringToFront
Example: Button1.BringToFront


CancelClose Top

CancelClose allows you to stop the form closing process.
CancelClose must be used in Sub Form_Close.
Syntax: CancelClose
Example:
Sub Form1_Close
 If Msgbox ("Do you want to quit?",, cMsgBoxYesNo) = cNo Then
   Form1.CancelClose
 End If
End Sub


CaseSensitive Top

Gets or sets whether the Table is case sensitive.
Default is false.
Syntax: CaseSensitive
Affects filtering, sorting and uniqueness.
Example:
Table1.CaseSensitive = True


Cell Top

Gets or sets the value in a specific cell in the Table.
Syntax: Cell (Column Name, Row Index)
Example:
value = Table1.Cell ("Col1", 0) 'Gets the value of the first row in a column named "Col1"
For i = 0 To Table1.ColCount-1
 Table1.Cell (Table1.ColName(i),0) = "Something"
Next
' Fills the first row with the value "Something" in all cells.


Click Top

Occurs when the user clicks on a control.
Syntax: Sub ControlName_Click


ColCount Top

Returns the number of columns in a table.
Syntax: ColCount
Example:
For i = 0 To Table1.ColCount-1
 Table1.Cell (Table1.ColName(i),0) = "Something"
Next
' Fills the first row with the value "Something" in all cells.


ColName Top

Returns the name of the column at the specified index in a Table.
Syntax: ColName (Index)
Example:
For i = 0 To Table1.ColCount-1
 Table1.Cell (Table1.ColName(i),0) = "Something"
Next
' Fills the first row with the value "Something" in all cells.


ColNumber Top

Returns the index of the specified column in a Table.
Syntax: ColNumber (Column Name)
Example:
This example selects the next column each time.
Sub Button1_Click
 i = Table1.ColNumber(Table1.SelectedCol)
 i = (i + 1) mod Table1.ColCount
 Table1.SelectCell(Table1.ColName(i),Table1.SelectedRow)
End Sub


ColWidth Top

Gets or sets the width of the specified column in a Table.
Syntax: ColWidth (Column Name)
Example:
Table1.ColWidth("Col1") = 100


Circle Top

Draws a circle (filled or empty) on a form.
Syntax: Circle (X,Y,Radius, (R,G,B | Color Constant) [,F])
X,Y - Circle middle point
Color can be either R,G,B or one of the color constants.
If you add the F parameter then a filled circle will be drawn.
Example:
Form1.Circle (100, 120, 40, cYellow) ' Empty yellow circle
Form1.Circle (200, 30, 10, 0, 255, 0, F) ' Filled green circle
Form1.Circle (150,150, 30, Button1.Color) ' Empty circle with the color of Button1


FCircle Top

Draws a circle (filled or empty) on the ForeLayer.
Syntax: FCircle (X,Y,Radius, (R,G,B | Color Constant) [,F])
X,Y - Circle middle point
Color can be either R,G,B or one of the color constants.
If you add the F parameter then a filled circle will be drawn.
Example:
Form1.ForeLayer = True
Form1.FCircle (100, 120, 40, cYellow) ' Empty yellow circle
Form1.FCircle (200, 30, 10, 0, 255, 0, F) ' Filled green circle
Form1.FCircle (150,150, 30, Button1.Color) ' Empty circle with the color of Button1


Close Top

Same as pressing a Form's X button.
Closes the form and raises the Close event.
If the form is not the main form, then the form will hide and not close (although the Close event will still be triggered).


Close-Calendar Top

Occurs after the user chooses a date.
Syntax: Sub CalendarName_Close


Close Event Top

Occurs when a Form is being closed or hide.
Use CancelClose to cancel the closing process.
Syntax: Sub FormName_Close


Color Top

Gets or sets a control's back color.
Color can be in R,G,B syntax, one of the color constants or another control's color property.
Syntax: Color
Example: Button1.Color = 255,0,0 'Red color
Example: Button1.Color = cRed
Example: Button1.Color = Form1.Color


Checked Top

Gets or sets whether a control is checked.
Syntax: Checked
Example: CheckBox.Checked = True


Clear Top

Clears all items from a list.
Syntax: Clear
Example: ComboBox1.Clear


ClearTable Top

Removes all rows from a Table.
Syntax: Clear
Example:
Table1.Clear


Count Top

Returns the number of items in a list. (Readonly property)
Syntax: Count
Example: Msgbox (ComboBox1.Count)
Result: Displays number of items.


DaysString Top

Gets or sets the seven letters string that will be used in a calendar control.
The default is: "SMTWTFS"
Syntax: DaysString

Example:
calendar1.DaysString = "MTWTFSS"
calendar1.FirstDay = 2


Dispose Top

Disposes of a control.
Syntax: Dispose
Example:
Button1.Dispose


DrawImage Top

Draws an image from a file on the form.
Syntax: DrawImage (Image | File , X1,Y1 [,X2, Y2])
If you write only X1, Y1 then the image will be placed with its original size starting from this point (the image's left-top corner will be on this point).
If you write X2,Y2 as well then the image will be stretched to fit the rectangle.
See External Files for information about file path.
Supported image files: BMP, GIF, JPEG, PNG, TIFF.
Examples:
Form1.DrawImage (ImageList1.Item(0), 100,100)
Form1.DrawImage ("smiley.gif", 200,200,240,240)


FDrawImage Top

Draws an image from on the ForeLayer.
Syntax: FDrawImage (Image| File, X1,Y1 [,X2, Y2])
See DrawImage


DrawString Top

Draws a string on the Form.
Syntax: DrawString (String, FontSize, X1,Y1,X2,Y2, (R,G,B | Color Constant))
The string is drawn starting from the top-left corner of the rectangle.
DrawString only draws the string and will not cover anything else.
This means that if you want to draw only one line of string, then write high values for X2,Y2.
Example:
Form1.DrawString ("Basic4ppc", 12, 20,20,400,400,cBlack)
Form1.DrawString ("This is a long string",12, 20, 40, 80, 80, 0, 0, 255)



FDrawString Top

Draws a string on the ForeLayer.
Syntax: FDrawString (String, FontSize, X1,Y1,X2,Y2, (R,G,B | Color Constant))
Behaves exactly as DrawString.


DropDown Event Top

Occurs when the calendar control opens.
Syntax: Sub ControlName_DropDown


Enabled Top

Gets or sets whether the user can react with the control or not.
Syntax: Enabled
Example: ComboBox1.Enabled = false


FErase Top

Erases a box from the ForeLayer.
Syntax: FErase (X1, Y1, X2, Y2)


File Top

Gets the file that was chosen by the user.
Syntax: File


Filter-Dialog Top

Gets or set the file filter property.
Syntax: Filter
Example:
OpenDialog1.Filter = "Picture Files|*.bmp;*.jpg|Text Files|*.txt|All Files|*.*"


Filter Top

Sets the filter expression.
Using filter, you can hide all the rows that don't match the filter expression.
Syntax: Filter (Filter Expression)
Filter Expression relates to one or more columns.
The simplest form is to find all rows which there column matches a certain value.
Syntax: Column Name = Value
If the column type is a cString the value should be surrounded with '.
Table1.Filter ("colFirstName = 'John'")
If the column type is a cNumber the value should be a number:
Table1.Filter ("colApples = 8")

If column type is cString then filter expression can include:
LIKE, <>, =
If column type is cNumber then filter expression can include:
<,>,<=,>=,<>,=

You can add conditions using AND, OR:
Table1.Filter ("colApples = 8 AND colFirstName = 'John'")

LIKE keyword uses wildcards (*) to search for matching items:
Table1.Filter ("colFirstName LIKE '*hn')
The wildcards can be at the start or end of the value.

To remove the filter:
Table1.Filter ("")


FirstDay Top

Gets or sets the first day of the week in a calendar control.
Default is 1 (Sunday).
Syntax: FirstDay

Example:
calendar1.DaysString = "MTWTFSS"
calendar1.FirstDay = 2


Focus Top

Tries to bring the focus to the control.
Syntax: Focus
Example: TextBox1.Focus


FontColor Top

Gets or sets the control's font color.
Color can be in R,G,B syntax, one of the color constants or another control color property.
Syntax: Color
Example: Button1.FontColor = 255,0,0 'Red color
Example: Button1.FontColor = cRed
Example: Button1.FontColor = Form1.Color


FontSize Top

Gets or sets the control font size.
Syntax: FontSize
Example: TextBox1.FontSize = 12


ForeLayer Top

Allows the use of the Form's ForeLayer.
Syntax: ForeLayer
Setting the ForeLayer to True creates a new graphical layer.
The new ForeLayer supports transparency.
Example:
Form1.ForeLayer = True


Format Top

Gets or sets the format of the date displayed by the calendar control.
Syntax: Format
Example:
Calendar1.Format = "dddd,mmmm,dd,yyyy"


GetPixel Top

Returns the color at a specific point on the form.
Syntax: GetPixel (X,Y)
Example:
Button1.Color = Form1.GetPixel (100,100)
Result: Button1 color will be set as the color of pixel (100,100) on the form.


FGetPixel Top

Returns the color at a specific point on the ForeLayer.
Syntax: FGetPixel (X,Y)
Example:
Button1.Color = Form1.FGetPixel (100,100)
Result: Button1 color will be set as the color of pixel (100,100) on the form's ForeLayer.


GotFocus Event Top

Occurs when the control receives the focus.
Syntax: ControlName_GotFocus


Height Top

Gets or sets the control's height.
Syntax: Height
Example: Button1.Height = 40
Note: ComboBox and TextBox height is changed when their FontSize property changes.


HeaderColor Top

Gets or sets the color of the Table's header.
Syntax: HeaderColor
Examples:
Table1.HeaderColor = cBlue
Table1.HeaderColor = 100,200,222


HeaderFontColor Top

Gets or sets the color of the Table's header font.
Syntax: HeaderFontColor
Examples:
Table1.HeaderFontColor = cBlue
Table1.HeaderFontColor = 100,200,222


HeaderVisible Top

Gets or sets whether the Table's header is visible.
Syntax: HeaderVisible
Example:
Table1.HeaderVisible = False


ILHeight Top

Returns the height of the image at the specific index in an ImageList control.
Syntax: Height (Index)
Example:
ImageButton1.Height = ImageList1.Height (0)


IgnoreKey Top

Prevents the computer from handling the last keystroke.
Syntax: IgnoreKey
Example:
Sub TextBox1_KeyPress(key)
 If key = chr(13) then ' Enter was pressed
   TextBox1.IgnoreKey
   TextBox2.Focus
 End If
End Sub


Image Top

Gets or sets the image of the control.
Syntax: Image
Image source can be a file or an other control image.
Example:
Form1.Image = ImageList1.Item(0)
ImageButton1.Image = Form1.Image


Increment Top

Gets or sets the increment value of NumUpDown control.
Each time the user presses one of the arrows, the increment will be added to the value.
Syntax: Increment
Example:
Num1.Increment = 5


IndexOf Top

Searches the ArrayList for the specific value and returns the index of the first occurrence.
Syntax: IndexOf (Value [,Start Index, Count])
Start Index - The first index to search from.
Count - Number of items to search for the value.
If the value isn't found IndexOf will return -1.
Example:
n = ArrayList1.IndexOf ("Apples")


Interval Top

Gets or sets the interval time (in milliseconds) between Timer ticks.
Syntax:Interval
Example: Timer1.Interval = 1000 ' Timer will tick every second


Insert Top

Inserts an item before another item in the list.
Syntax: Insert (Index, Value)
Example:
ComboBox1.Insert (0,"First Item")
Result: Inserts the string "First Item" at the beginning of the list.


Item Top

Returns or changes an item in the list.
Syntax: Item (Index)
Index starts from 0.
Example: ComboBox1.Item (1) = "Apples"


ILItem Top

Returns an image or changes an existing image.
Syntax: Item (Index)
Example:
ImageList1.Item(0) = "smile.gif"
ImageList1.Item(1) = Form1.Image
ImageButton1.Image = ImageList1.Item(0)


KeyPress Top

Occurs when a control has the focus and the user presses on a key.
Forms (unlike other controls) can receive one of the SpecialKeys constants and can handle the Hardware direction keys.
Syntax: Sub ControlName_KeyPress (key)
key is the key value that was pressed.

For Forms: Sub ControlName_KeyPress (SpecialKey)
SpecialKey can be one of:
 cDownKey
 cLeftKey
 cMiddleKey
 cRightKey
 cUpKey


Left Top

Gets or sets a control's left distance from the Form (or Panel).
Syntax: Left
Example: Button2.Left = Button2.Left + 20 ' Moves the button 20 pixels right.


Line Top

Draws a line or a box (filled or empty) on a form.
Syntax: Line (X1,Y1,X2,Y2, (R,G,B | Color constant) [,BF])
B - will draw an empty box.
BF - will draw a filled box
Example:
Form1.Line (40,40,100,100,cWhite) 'Draws a white line
Form1.Line (10,100,30,40,cRed, B) 'Draws an empty red box


LinesColor Top

Gets or sets the color of the lines in the Table.
Syntax: LinesColor
Example:
Table1.LinesColor = cGold


FLine Top

Draws a line or a box (filled or empty) on the ForeLayer.
Syntax: FLine (X1,Y1,X2,Y2, (R,G,B | Color constant) [,BF])
B - will draw an empty box.
BF - will draw a filled box
Example:
Form1.FLine (40,40,100,100,cWhite) 'Draws a white line
Form1.FLine (10,100,30,40,cRed, B) 'Draws an empty red box


LoadCSV Top

Loads data to the Table from a CSV file.
Syntax: LoadCSV (File Name, Separator Character, Header Exist, Create Columns)
Separator Character - The character that is used to separate between the values. Usually , (comma)
Header Exist - A boolean that tells if the first row in the file is the columns names (header values) or the file contains only the data.
Create Columns - If set to True, new columns will be created (type - cString). If false the current columns will remain and the data will be added. In the second case the column number and type must match the data.

If HeaderExist is True and CreateColumns is True: New columns will be created named as the values of the first row in file.
If HeaderExist is True and CreateColumns is False: The data will be added to the current columns ignoring the first row in file.
If HeaderExist is False and CreateColumns is True: New columns will be created named Column1, Column2...
If HeaderExist is False and CreateColumns is False: The data will be added to the current columns including the first row in file.
Example:
Table1.LoadCSV ("data.csv", ",", True, True)


LoadXML Top

Loads data to a Table from an XML file.
Syntax: LoadXML (File Name)
LoadXML clears the table and adds new columns (including there type) and data.
Example:
Table1.LoadXML ("Data.xml")


LoadPicture Top

Loads a picture as the background of a Form or an Image.
Syntax: LoadPicture (Image File)
See External Files for information about file path.
Example:
Image1.LoadPicture ("Sunset.jpg")
Supported image types are: BMP, GIF, JPEG, PNG, TIFF.
LoadPicture exists only because of backward compatibility, use Image property instead.


LostFocus Event Top

Occurs when a control loses the focus.
Syntax: ControlName_LostFocus


Maximum Top

Gets or sets the maximum value of a NumUpDown control.
Syntax: Maximum
Example:
Num1.Maximum = 100


Minimum Top

Gets or sets the minimum value of a NumUpDown control.
Syntax: Minimum
Example:
Num1.Minimum = -50


Mode Top

Gets or sets the way images appear in a control.
Syntax: Mode
Mode value can be one of the three image constants:
 cCenterImage - The image is centered to the control center.
 cNormalImage - The image is drawn starting from the top-left control corner.
 cStretchImage - The image is streched to fit the control.
Example: Image1.Mode = cStretchImage


MouseDown Event Top

Occurs when the pen touches the screen.
Syntax: Sub ControlName_MouseDown (X,Y)
X,Y - The point the pen touched.


MouseMove Top

Occurs when the pen touches the screen and moves.
Syntax: Sub ControlName_MouseMove (X,Y)
X,Y - The current point


MouseUp Top

Occurs when the pen leaves the screen.
Syntax: Sub ControlName_MouseUp (X,Y)
X,Y - The last point the pen touched.


MultiLine Top

Gets or sets whether the TextBox is multiline or not.
Syntax: MultiLine
Example: TextBox1.MultiLine = true

Note: MultiLine TextBox has vertical scrollbars.


Name Top

Returns the name of the control.
Syntax: Name
Example:
Sub App_Start
 Form1.Show
 For i = 1 to 5
   AddButton (Form1, "Button" & i, 20, 40 * i, 50, 30, "Click Me!")
   AddEvent ("Button" & i, Click, "ButtonsClick")
 Next
End Sub

Sub ButtonsClick
 s = Control (Sender).Name
 Msgbox ("Button: " & s & " was pressed.")
End Sub

This example creates 5 buttons. When the user presses a button, a message with the button's name appears.


Polygon Top

Draws a polygon on the form.
Syntax: Polygon (XArray, XStart, YArray, YStart, Count, (R,G,B | Color Constant) [,F])
XArray - The array which stores the x-coordinates.
Can be a one dimension array or an ArrayList.
XStart - The index of the first x-coordinate.
YArray - The array which stores the y-coordinates.
Can be a one dimension array or an ArrayList.
YStart - The index of the first y-coordinate.
Count - Number of points.
F - Draws a filled polygon.
Example:
Sub App_Start
 Form1.Show
 AddArraylist("alX")
 AddArraylist("alY")
 alX.Add(Form1.Width/2)
 alY.Add(0)
 alX.Add(Form1.Width)
 alY.Add(Form1.Height/2)
 alX.Add(Form1.Width/2)
 alY.Add(Form1.Height)
 alX.Add(0)
 alY.Add(Form1.Height/2)
 form1.Polygon(alX,0,alY,0,alX.count,cGold,F)
End Sub
This example draws a filled diamond.


FPolygon Top

Draws a polygon on the ForeLayer.
See Polygon.


Pixel Top

Returns the color at a specific point of an image in the ImageList.
Syntax: Pixel (Index, X,Y)
Example:
Button1.Color = ImageList1.Pixel (0,100,100)
Result: Button1 color will be set as the color of pixel (100,100) of the first image stored in the ImageList.


Refresh Top

Forces a control to redraw itself.
Syntax: Refresh
Example: Form1.Refresh


Remove Top

Removes the first item in a list control whose value matches the value.
Syntax: Remove (Value)
Example: ComboBox1.Remove ("Lemons")

To remove an item by its index use:
RemoveAt


RemoveAt Top

Removes the item at a specific position in a list control.
Syntax: RemoveAt (Index)
First item index is 0.
Example: ListBox1.RemoveAt (1) 'Removes the second item.


RemoveCol Top

Removes a column from a Table.
Syntax: Remove (Column Name)
Example:
Table1.Remove ("Col1")


RemoveRow Top

Removes a row from a Table.
Syntax: RemoveRow (Row Index)
Example:
Table1.RemoveRow (0) 'Removes the first row.


Reverse Top

Reverse the order of items in an ArrayList.
Syntax: Reverse
Example:
ArrayList1.Reverse


RowCount Top

Returns the number of rows displayed in a Table (excluding the filtered rows).
Syntax: RowCount
Example:
r = Table1.RowCount


ScrollToCaret Top

Scrolls the vertical bar to show the current caret position.
Relevant to MultiLine TextBox.
Syntax: ScrollToCaret
Example: TextBox1.ScrollToCaret


SaveCSV Top

Saves a Table's data to a CSV file.
Syntax: SaveCSV (File Name, Separator Character, IncludeHeader)
Separator Character - The character that separates between the values.
Usually comma ( , )
Include Header - If set to True, saves the columns names as the first row, else ignores the columns names.
Example:
Table1.SaveCSV ("data.csv", "," ,False)


SaveXML Top

Saves the Table's data and columns type as an XML file.
Syntax: Table1.SaveXML (File Name)
Example:
Table1.SaveXML ("data.xml")


SelectCell Top

Selects a specific cell in the Table.
Syntax: SelectCell (Column Name, Row Index)
Example:
Table1.SelectCell ("colID", 4)


SelectedCol Top

Returns the name of the column of the selected cell.
Syntax: SelectedCol
Example:
Msgbox (Table1.Cell (Table1.SelectedCol, Table1.SelectedRow))

Shows the value of the selected cell.


SelectedRow Top

Returns the index of the row of the selected cell.
Syntax: SelectedRow
Example:
Msgbox (Table1.Cell (Table1.SelectedCol, Table1.SelectedRow))

Shows the value of the selected cell.


SelectedIndex Top

Returns or sets the controls SelectedIndex.
Syntax: SelectedIndex
Example: ComboBox1.SelectedIndex = 2
Result: The ComboBox will show the third (starting from 0) item.


SelectedIndexChanged Top

Occurs when the user chooses an item.
Syntax: Sub ControlName_SelectionChanged (Index, Value)
Index is the chosen item index (starting from 0).
Value is the items value.


SelectionChangedTable Top

Occurs after the selected cell changed.
Syntax: Sub ControlName_SelectionChanged (Column Name, Row Index)
Column Name - The chosen cell column name.
Row Index - The chosen cell row index.


SelectionStart Top

Gets or sets the start position of the selection in a TextBox.
Syntax: SelectionStart
Example: TextBox1.SelectionStart = 0
Result: Moves the cursor to the start of the TextBox


SelectionLength Top

Gets or sets the length of the selection in a TextBox.
Syntax: SelectionLength
Example: TextBox1.SelectionLength = 5
Result: Selected text will be 5 characters long starting from the current position.


Show Top

Makes the form visible.
The first form that is shown will be the main form.
Syntax: Show
Example: Form1.Show


Show-Dialog Top

Shows the save / open file dialog.
Syntax: Show


Sort Top

Sorts the ArrayList.
Syntax: Sort (Compare Constant)
Compare Constant could be:
cNumbers - All values are numbers (9 will be sorted before 10)
cCaseSensitive - Sorts strings.
cCaseUnsensitive - Sorts string.
Example:
Sub App_Start
 Form1.Show
 ArrayList1.Add("apple")
 ArrayList1.Add("A")
 ArrayList1.Add("cat")
 ArrayList1.Add("bee")
 ArrayList1.Sort(cCaseSensitive)
 For i = 0 to ArrayList1.Count-1
   ListBox1.Add(ArrayList1.Item(i))
 Next
End Sub
This example fills a ListBox with the items from the sorted ArrayList.


TableSort Top

Sets the sort expression which sorts the Table.
Syntax: TableSort (Sort Expression)
Sort Expression syntax is column name and ASC (ascending) or DESC (descending).
Example:
Table1.TableSort ("colFamilyName ASC")
Sorting can be done by more than column (in case of repeating values) using , (comma).
Example:
Table1.TableSort ("colFamilyName ASC, colFirstName ASC")


Text Top

Gets or sets a control's text (sometimes called caption).
Syntax: Text
Example: Form1.Text = "My application"


Tick Event Top

Occurs when a Timer is enabled, after the Interval time.
Syntax: Sub TimerName_Tick
Example: (Create a Form named Form1, a Timer named Timer1 and a Label named lblTime)

Sub Globals
 N = 10
End Sub

Sub App_Start
 Form1.Show
 Timer1.Interval = 1000 'milliseconds
 Timer1.Enabled = True
End Sub

Sub Timer1_Tick
 N = N-1
 If N = 0 Then Timer1.Enabled = False
 lblTime.Text = N
End Sub

This example will show a label which counts from 10 to 0.


Top Top

Gets or sets a control's distance from the top of the Form (or Panel)
Syntax: Top
Example: TextBox1.Top = TextBox1.Top - 20 ' Moves the control 20 pixels upwards.


Transparent Top

Gets or sets whether an ImageButton is transparent.
Syntax: Transparent
Example:
ImageButton1.Transparent = True


Value Top

Gets or sets the value of NumUpDown control.
Must be between minimum and maximum properties.
Syntax: Value
Example:
Num1.Value = 50


Value-Calendar Top

Gets or sets the date value of the calendar control.
The value is stored as ticks.
Syntax: Value
Example:
t = Calendar1.Value
Msgbox (Date(DateAdd(t,0,9,0)))

This example will show the date nine months after the date the user chose.


ValueChanged Event Top

Occurs after a control's value has changed.
Syntax: Sub ControlName_ValueChanged


Visible Top

Gets or sets whether a control is visible or not.
Syntax: Visible
Example: CheckBox1.Visible = false
Note: To close or show forms use Form.Close or Form.Show


Width Top

Gets or sets a control's width.
Syntax: Width
Example: RadioBtn1.Width = 100


ILWidth Top

Returns the width of the image at the specific index in an ImageList control.
Syntax: Width (Index)
Example:
ImageButton1.Width = ImageList1.Width (0)