To delete one or more objects from the design window, select them on the design window and press the Delete key. Alternatively, right-click on the design window and select Delete from the context menu.

When a control is deleted from the design window:

  • If it is a container control, any child controls that it contains are also deleted.
  • All code related to a deleted control is removed from the .w procedure file.
Note: If you want to restore a deleted object, select Undo option from the Edit menu

For more information, see Choose objects for the design window