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
William DePalo [MVP VC++] - 25 Feb 2005 23:39 GMT
>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
Škrat Bolfenk - 26 Feb 2005 00:03 GMT
> 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
[quoted text clipped - 4 lines]
>
> 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 ...