Click to See Complete Forum and Search --> : Getting a other file extension as default instead of all files as default extension


Darc
June 25th, 2009, 05:07 AM
Hi,

I am using VB 08 running an openfiledialogue wanting to get the result of the GDS file (*.gds) to be the default extension at the drop down menu instead of All file when the openfiledialogue box opens.

I coded it with:


OpenFileDialogue.Filter = "GDS File(*.gds)|*.gds|All files|*.*"


but the results i get in the open file dialogue box remains as all files being in the drop down menu as the default file extension. How to i set it to ".gds" format? thanks a million.

HanneSThEGreaT
June 25th, 2009, 05:23 AM
That should work :eek:

Where did you set this Filter property ¿

Have you tried writing GDS File(*.gds)|*.gds|All files|*.* Into the Properties window at design time ¿
You may also want to look at the DefaultExt property ...