Tom Setzer
2007-05-17 19:23:45 UTC
Hi,
I'm working on an application in VS2003 and deploying it to Vista. The app
is having trouble using the standard OpenFileDialog. I created a simplified
sample to see if it was something else that I was doing:
private void button1_Click(object sender, System.EventArgs e)
{
DialogResult result = openFileDialog1.ShowDialog();
return;
}
When running this through the Standard User Analyzer with "Elevate" turned
off, the dialog box never appeared and I found that the result was coming
back "CANCEL". When I turn "Elevate" on, the dialog appears normally.
When I turn it off, no dialog.
Is the OpenFileDialog or the ShowDialog method accessing something that
requires admin rights? Is there a way to fix this?
Tried this in VS2005 and saw same results.
Thanks
Tom
I'm working on an application in VS2003 and deploying it to Vista. The app
is having trouble using the standard OpenFileDialog. I created a simplified
sample to see if it was something else that I was doing:
private void button1_Click(object sender, System.EventArgs e)
{
DialogResult result = openFileDialog1.ShowDialog();
return;
}
When running this through the Standard User Analyzer with "Elevate" turned
off, the dialog box never appeared and I found that the result was coming
back "CANCEL". When I turn "Elevate" on, the dialog appears normally.
When I turn it off, no dialog.
Is the OpenFileDialog or the ShowDialog method accessing something that
requires admin rights? Is there a way to fix this?
Tried this in VS2005 and saw same results.
Thanks
Tom