Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Methods Summary
◄Summary► ◄Details► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Methods Summary
■ Methods are keywords similar to functions or statements except that
they always act on a specific object (a form, control, or the special
objects CLIPBOARD, PRINTER, or SCREEN). Methods tell an object to perform
some type of action. In some cases, a method's action returns a value.
■ Each method applies to a specific set of objects. A list of applicable
objects is defined in the Help topic for each individual method.
■ Use the following syntax for methods:
[form.][object.]method [arguments]
• form Name of the form; if omitted, the implied form is used
• object Name of the form, special object, or control; if
omitted, the implied form or control is used
• method Name of the method
• arguments Any valid arguments; in some cases, arguments are
optional or nonexistent
■ The following methods are available in Visual Basic:
◄ADDITEM► Adds an item to a list box or combo box
◄CLEAR► Clears the CLIPBOARD object
◄CLS► Clears text from a form or picture box
◄DRAG► Begins, ends, or cancels the dragging of controls
◄ENDDOC► Terminates the current document
◄GETTEXT► Returns text from the CLIPBOARD
◄HIDE► Makes a form and its contents invisible
◄MOVE► Moves and sizes a control or form
◄NEWPAGE► Terminates the current page and advances to the next one
◄PRINT► Prints data to a form, picture box, or printer
◄PRINTFORM► Sends an ASCII dump of a form to the printer
◄REFRESH► Forces repaint or update of a form or control
◄REMOVEITEM► Removes an item from a list box or combo box
◄SETFOCUS► Sets the focus to a specific control
◄SETTEXT► Puts text on the CLIPBOARD
◄SHOW► Makes a form and its contents visible
◄TEXTHEIGHT► Returns the height of a string
◄TEXTWIDTH► Returns the length of a string
See Also
◄Controls Summary► ◄Form►
◄Object Events Summary► ◄Properties Summary►