Clearing Selected Files

When a user selects a file at run time using the C1FilePicker control, the file name appears in the text area of the control. If you want to clear all the files selected by the C1FilePicker and remove the selected file names from the control, you can use the ClearSelection method. In this example, you'll add a button to your application to clear the C1FilePicker control.

For example, add a button to your application and in the button's Click event handler add the following code:

      Visual Basic

      C#

 What You've Accomplished

Run the application, and at run time choose a file in the C1FilePicker control. Click the button that you added and observe that the C1FilePicker control's file selection is cleared.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.