DanT

DanT

  • NA
  • 1
  • 1k

Dialog Box Not Opening

Jan 8 2015 8:47 AM
I have a C# window's app that uses the OpenFileDialog from a Linklabel onclick event.  When I run it on my PC the dialog box opens, however when other users run it, the dialog box does not open.  I'm running Window's 7 Ent Ed 64 bit, the other users are running same OS but 32 bit.  The platform in the app is set at x86.
 
Here's the code:
 
public string GetFile()
{
string selectedfile;
OpenFileDialog ofd = new OpenFileDialog();
DialogResult dr = ofd.ShowDialog();
if (dr == DialogResult.OK)
{
selectedfile = ofd.FileName;
}
else
{
selectedfile = null;
}
return selectedfile;
}
 
Has anyone else has this experience? 

Answers (1)