Solved

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

Posted on 2004-08-11
5
225 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CheckListBox usage 3 71
How to load 2 images in same column in Delphi 2 57
Wincontrol not (correctly) drawn 15 40
Delphi android app hide keyboard 3 15
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

860 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