Microsoft
Software
Hardware
Network
Question : How to display two types of file format in OpenFileDialog in windows application using c#
My code
----------
openFileDialog1.Filter = "XLSX file(*.xlsx)|*.xlsx|XLSM file(*.xlsm)|*.xlsm";
openFileDialog1.ShowDialog
();
Now it is displaying either .xlsx or .xlsm files one type at a time. but it want to display both file format types in the dialog box at a time. Is't possible to display like this?
I don't want to change files type option in dialogbox from one type format to another to display the files.
Answer : How to display two types of file format in OpenFileDialog in windows application using c#
try:
openFileDialog1.Filter = "Excel files (*.xlsx, *.xlsm)|*.xlsx;*.xlsm";
Random Solutions
SPID process blocking itself
Script needed to close program and stop/start service
Quickbooks 2010 QB crashes when trying to print to network printer
(hopefully) Simple Excel 2007/2010 question
SSO Internet Explorer and Sharepoint Services 2008
SQL injection problem on several pages. Any server side solution to this
Publishing Applications - Windows Server 2008
C# Books and training
The session setup from computer 'PcName' failed because the security database does not contain a trust account 'PcName$' referenced by the specified computer.
nginx - possible to rewrite based on referring url?