I have a WPF application which mostly works just fine. However a couple of people have reported that when they press the browse button nothing happens. The code for this seems pretty simple:
private void btnBrowseFile_Click(object sender, RoutedEventArgs e)
{
Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
dlg.Filter = "Supported Types (*.xml)|*.xml";
Nullable<bool> result = dlg.ShowDialog();
if (result == true)
{
Environment is Windows 7, .Net 3.5 SP1, single monitor. Apparently no exception occurs and the application isn't hung. The OpenFileDialog simply fails to appear.
Any ideas?
Thanks,
Barrie