File open dialog

  • Thread starter Thread starter Lonnie
  • Start date Start date
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
 
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
 
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 ...
 
Back
Top