File open dialog

L

Lonnie

I need to implement a simple file open dialog in my form application
(C++ .NET). I know there has to be a canned version of this dialog
somewhere that I can simply use, but where? How? All the
documentation I've seen involves MFC, and I'm not using MFC.

Pre-emptive thanks!

Lonnie
 
W

William DePalo [MVP VC++]

Lonnie said:
I need to implement a simple file open dialog in my form application
(C++ .NET). I know there has to be a canned version of this dialog
somewhere that I can simply use, but where?

Will this one do?:

System::Windows::Forms::OpenFileDialog

Regards,
Will
 
G

Guest

Lonnie said:
I need to implement a simple file open dialog in my form application
(C++ .NET). I know there has to be a canned version of this dialog
somewhere that I can simply use, but where? How? All the
documentation I've seen involves MFC, and I'm not using MFC.

Pre-emptive thanks!

Lonnie

.. . .
using namespace System::Windows::Forms
.. . .

OpenFileDialog __gc* openFileDialog1 = new OpenFileDialog();

if(openFileDialog1->ShowDialog() == DialogResult::OK)
{
MessageBox::Show(openFileDialog1->FileName, S"Open File");
}


.... if this helps a bit ...
 

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