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
Moved a Dolpin 7 website to a new server and I get an error message.
Creating Server 2008 Domain
Mysql query browser and Character set
Case statement based on query
how to stop sql execution on refreshing a page or closing a browser
What is the extension to bring in a 2007 Excel xlsm workbook into Access 2007?
Globally change the Blackberry Service Display name
pop up panel
Trunking issues with HP Procurve Swicthes 3500yl
one code fits all : INDY9 or INDY 10 with D7 or D2005 or D2010Question: