Hi all, I'm using Visual Studio 2003 and am creating simple program.
I need to open a file using openFileDialog,
I dragged the open file dialog and I need to know how to use it to open.
this is what I've got
[code]
DialogResult buttonClicked = openFileDialog1.ShowDialog();
if (buttonClicked.Equals(DialogResult.OK))
{
openFileDialog1.OpenFile();
}
if (buttonClicked.Equals(DialogResult.Cancel))
{
openFileDialog1.Reset();
}
[/code]
I only know that I use this:
openFileDialog1.ShowDialog()
and
openFileDialog1.OpenFile()
but even though I write OpenFile into the code, it does nothing,
do I have to use some streaming or something? how do I force the
program to open the file?
it's a normal windows file, with *.udl extension
thank you for your help