OpenFileDialog
allows users to browse folders and select files.
It is available in Windows Forms and can be used with C# code.
It displays the standard Windows dialog box.
The results of the selection can be read in your C# code.
You can open the OpenFileDialog that is in your Windows Forms program. The dialog will not open automatically and it must be invoked in your custom code. You will want to use an event handler to open the dialog in your C# code.
You can open the OpenFileDialog that is in your Windows Forms program. The dialog will not open automatically and it must be invoked in your custom code. You will want to use an event handler to open the dialog in your C# code.
Here:
We will use a button in this tutorial, which when clicked will open the dialog.
You can add
a Button control—this can be clicked on to call into the OpenFileDialog
window.
To add a Button, find the Button icon in the Toolbox and drag it to an area
in your Windows Forms window.
No comments:
Post a Comment