C# opening the file
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

jamesRank #1,153 · 1.6K reputationPosted Aug 23, 2004, 6:07 AM EDT
MykonineRank #2,671 · 521 reputationPosted Aug 23, 2004, 7:15 AM EDT
vitek20 reputationPosted Aug 23, 2004, 11:12 PM EDT
vitek20 reputationPosted Aug 23, 2004, 11:24 PM EDT
vitek20 reputationPosted Aug 24, 2004, 12:24 AM EDT
vitek20 reputationPosted Aug 24, 2004, 1:26 AM EDT
MykonineRank #2,671 · 521 reputationPosted Aug 24, 2004, 1:05 PM EDT