OpenFileDialog

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to open an OpenFileDialog box with a certain prefix. For
example all files beginning with AllState.

How do you do that?

Thanks...Arne
 
If I am understanding what you mean then this will work

The bit before the pipe is the description that appears in the dialog box
OpenFileDialog1.Filter = "(State files) | allstate*"

OpenFileDialog1.ShowDialog()
 
That works thanks...but if the name is a variable (ie name = taxtbox1.text)
do I need to enclose it in what?

Thanks
 
Back
Top