Complete the following steps to edit cells in a listbox or tree control at run time.
- Right-click the listbox or tree control and select Editable Cells from the shortcut menu to allow users to edit cells at run time. You also can use the Allow Editing Cells property to programmatically allow users to edit cells in a single-column listbox, multicolumn listbox, or tree control.
- At run time, click the cell text you want to edit, and click it a second time after a short pause. You also can use the Edit Position property to programmatically select which cell to edit in a multicolumn listbox, or tree control.
- Enter the text you want.
Use the Edit Cell event to handle the event that a user changes text in the cell of a single-column listbox, multicolumn listbox, or tree control.