OpenFileDialog

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
 
M

Michael M.

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()
 
G

Guest

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

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top