Click here to Skip to main content
15,880,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have a small project in VS2015, Windows Forms Applications accessing via shared folder using UNC paths for 4-systems. Windows Forms have OpenFileDialog() control. Actually it's working good in 3 systems. But 1 of the remaining user system showing exception 0x732E1175 (uxtheme.dll), at the line openfiledialog1.ShowDialog()…command..

Does any of the superiors can guide me? Thanks

MyCodes

C#
MyFileNameStr = String.Empty;
MyDrawingFile = String.Empty;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.InitialDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
openFileDialog1.Title = "Select Your Attachment File :- ";
openFileDialog1.AutoUpgradeEnabled = true;
openFileDialog1.Multiselect = true;
openFileDialog1.SupportMultiDottedExtensions = true;
openFileDialog1.CheckFileExists = false;
openFileDialog1.CheckPathExists = true;
openFileDialog1.ValidateNames = false;
openFileDialog1.AddExtension = true;
openFileDialog1.Filter = "exe files | *.exe|All files (*.*)|*.*";
openFileDialog1.FilterIndex = 2;
openFileDialog1.RestoreDirectory = true;

openFileDialog1.ReadOnlyChecked = true;
openFileDialog1.ShowReadOnly = true;
//?????????????????????  Error exception at below line
if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
MyDrawingFile = System.IO.Path.GetFileName(openFileDialog1.FileName).ToString();
MyFileNameStr = System.IO.Path.GetFileNameWithoutExtension(openFileDialog1.FileName).ToString();
}


What I have tried:

Tried to use openfiledialog control inside datagridview cell click
Posted
Comments
Richard MacCutchan 21-Jan-20 4:39am    
Please show the exact details of the exception including any message text.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900