Solved

How i set OpenDialog component just to open *.MDB files?

Posted on 2004-08-11
5
227 Views
Last Modified: 2010-04-05
Hi folks,

I´d like that, when i call my 'FileName' property of my 'OpenDialog1' component, just *.MDB files appears in the dialog (not all kind of files).

Do you know how i do that?

Thx. very much!
0
Comment
Question by:MinimeBoy
  • 3
5 Comments
 
LVL 7

Accepted Solution

by:
LRHGuy earned 25 total points
ID: 11780471
Set the Filter property to:  *.MDB

If you click on the ellipsis in the object inspector, a property editor will open up, you can fill in the name, then the filter as *.mdb

Tada!
0
 
LVL 7

Expert Comment

by:LRHGuy
ID: 11780475
Or, you can do it manually, say in a FormCreate method:

OpenDialog1.Filter:='MDB Files|*.mdb';

Enjoy!
0
 

Author Comment

by:MinimeBoy
ID: 11780668
Thank you very much.
0
 
LVL 7

Expert Comment

by:LRHGuy
ID: 11782704
Hi!

Was there something wrong with my answer, that you felt it only deserved a "C"? I thought it was quick and accurate, and addressed the problem directly.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question