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
MykoninePosted Aug 24, 2004, 5:05 PM
vitekPosted Aug 24, 2004, 5:26 AM
vitekPosted Aug 24, 2004, 4:24 AM
vitekPosted Aug 24, 2004, 3:24 AM
vitekPosted Aug 24, 2004, 3:12 AM
MykoninePosted Aug 23, 2004, 11:15 AM
jamesPosted Aug 23, 2004, 10:07 AM