J
Jiddu
Hi Guys,
I'm using Visual C# express (beta) and I'm trying to acquire the
filename from the selected file in an OpenFileDialog box. Seems
pretty straight forward except every time I attempt to access the
FileName property I get a security exception. This also occurs when
I attempt to set the InitialDirectory property. I can set the
filters however.
Everything has been declared correctly.
Any ideas?
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
I'm using Visual C# express (beta) and I'm trying to acquire the
filename from the selected file in an OpenFileDialog box. Seems
pretty straight forward except every time I attempt to access the
FileName property I get a security exception. This also occurs when
I attempt to set the InitialDirectory property. I can set the
filters however.
Everything has been declared correctly.
Any ideas?
private void addSourceFileButton_Click(object sender, EventArgs e)
{
try
{
addSourceFileDialog.ShowDialog();
sourceFileListBox.Items.Add(addSourceFileDialog.FileName);
}
catch (SecurityException ex)
{
MessageBox.Show(ex.Message);
}
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*