These Solution samples, organized in order of control type, illustrate many tasks you can perform with controls.
In This Section
- Add Items Interactively to a List Box Sample
- Illustrates how to add and remove items from a list box.
- Add New Items to a Combo Box Sample
- Illustrates how to add text entered by a user into the list for a combo box.
- Allow Users to Choose List Values Sample
- Illustrates how to provide a set of values from a table in a list box and combo box.
- Allow Users to Drag and Drop Controls Sample
- Illustrates how to implement drag and drop operations for controls.
- Change Pages When a User Chooses a Button Sample
- Illustrates how to display different combinations of command buttons in a message box using option buttons.
- Change the Number of Tabs at Run Time Sample
- Illustrates how to use a page frame with tabs.
- Display a Stop Watch Sample
- Illustrates how to use the Stopwatch class to display a stopwatch.
- Display a System Clock Sample
- Illustrates how to display a system clock.
- Display Calculated Values in a Column Sample
- Illustrates how to display a calculated value in a grid column.
- Display Child Records from a Relationship Sample
- Illustrates how to coordinate a form with a one-to-many relationship and two grids and display the types of relationships.
- Display Controls in a Grid Sample
- Illustrates how to display controls in grid columns.
- Display Different Pages without Tabs Sample
- Illustrates how to manipulate pages without tabs in a page frame.
- Display Multiple Columns in a List Box Sample
- Illustrates how to display multiple columns in a list box.
- Display Pictures in a List Sample
- Illustrates how to display pictures next to items in list boxes.
- Dynamically Format Grid Columns Sample
- Illustrates how to set the dynamic foreground and background colors in grid columns.
- Edit a Memo Field or Text File Sample
- Illustrates how to view and edit text from a Memo field or text file in an edit box.
- Execute Commands at Specified Intervals Sample
- Illustrates how to set intervals between the display of text using a text box and a spinner.
- Fill a List with Values from Different Sources Sample
- Illustrates how to set the RowSourceType property of a list box so you can display values from different sources.
- Format Input and Validate Data in a Text Box Sample
- Illustrates how to make it easy for the user to enter data with a specific format in a text box.
- Grid Highlighting, Column Resizing, and Header Images Sample
- Demonstrates how to select style and colors for grid highlighting, resize columns automatically to the width of data in the column, lock the first grid column so that it does not scroll, and specify images in column headers.
- Hot Tracking and Hover Effects Sample
- Illustrates how you can add special effects to controls on forms.
- Manipulate Text Programmatically Sample
- Illustrates how to use properties of an edit box to manipulate text at run time.
- Move Items Between List Boxes Sample
- Illustrates how to move items from one list box to another.
- Multiselect Items in a List Box Sample
- Illustrates how to manage selected multiple items in a list box.
- Present a User with Multiple Choices Sample
- Illustrates how to use an option button group to present multiple choices.
- Open Multiple Files Interactively Sample
- Illustrates how to display files in a list.
- Resize and Reposition Controls at Run Time Sample
- Illustrates how you can resize a form as desired and have the controls on the form resize or reposition themselves relative to the new dimensions of the form.
- See Check Box Design Options Sample
- Illustrates a variety of properties used to customize the display of check boxes.
- See Command Button Design Options Sample
- Illustrates a variety of properties used to customize the display of command buttons.
- Sort List Box Items Sample
- Illustrates how to make it possible for the user to rearrange or sort items in a list box.
- Treeview/Listbox Drag and Drop Sample
- Illustrates how to set the drag-and-drop properties for tree view and list box controls.
Reference
- Sample Class Libraries
- Contains sample class libraries that provide encapsulated functionality you can add to your applications.
- Visual FoxPro Foundation Classes A-Z
- Describes Visual FoxPro Foundation classes you can use for rapid application development.
- Reference (Visual FoxPro)
- Includes Visual FoxPro general, programming language, user interface, and error message reference topics.