03-04-2007, 5:37
|
Maen Hasan

Joined on 08-05-2004
Posts 1,874
|
Re: Setting the filters in raster file open dialog
|
 
 
|
|
|
Hello,
You can try to use the RasterOpenDialog.Filter Property to get or set the current file name filters array, which determines the choices that appear in the "Files of type" box in the dialog box. You can use the following code: +-----------------------------+ ... RasterOpenDialog openDlg = new RasterOpenDialog(rasterCodecs); openDlg.Filter = new RasterOpenDialogLoadFormat[] { new RasterOpenDialogLoadFormat ( "All Files", "*.*" ), new RasterOpenDialogLoadFormat ( "LEAD", "*.cmp" ) }; ... +-----------------------------+
Thanks, Maen Badwan LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|