Looking for dll, and usage

My app accesses a file.  I would like the user to be able to modify the file, by either typing it into a textbox, or pushing a "Browse..." button.  The button should call the dll that many Microsoft applications use to allow you specify which file to open.

What is the name of this dll, what parms do I provide it and what does it return?  (I have no manuals for this info.)
tlaksAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

psmith789Commented:
Is this a text file? You may be able to use the common file dialog to get the name and then a Shell command to open it in Notepad (or your specific text editor).

Don't have manuals...do you have the help files? Also, what version of VB?
0
tlaksAuthor Commented:
This is version VB 6.0
The help files are slow massive and confusing, but I checked there first and could not find help that would walk me through my dll.
I probably am looking for the common file dialog.  The program will read and process the file.  All I need is the dll, syntax, and what it returns.
0
psmith789Commented:
Try:

Private Sub mnuFileOpen_Click ()
   ' CancelError is True.
   On Error GoTo ErrHandler
   ' Set filters.
   CommonDialog1.Filter = "All Files (*.*)|*.*|Text _
   Files (*.txt)|*.txt|Batch Files (*.bat)|*.bat"
   ' Specify default filter.
   CommonDialog1.FilterIndex = 2

   ' Display the Open dialog box.
   CommonDialog1.ShowOpen
   ' Call the open file procedure.
   OpenFile (CommonDialog1.FileName)
   Exit Sub

ErrHandler:
' User pressed Cancel button.
   Exit Sub
End Sub

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tlaksAuthor Commented:
Yes.  This is to the mark what I needed.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.