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
AMD vs Intel? on dell's website - which has greater VM performance?
How do I assign a default value in TextBox fields in DetailsView for Insert mode
Internet Monitoring Reporting software Sonicwall
SAP RFC returning Invalid Data Type
Unable to view PDF files in a web browser
need .ico
PowerEdge 1950 - Hard Drive Upgrade - Server 2003 R2
Is SQL Server 2005, 2008 free?
Delete shortcut from all users desktop via script
jQuery script error in Firebug