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
mysql syntax Kill id in process list
difficulty in binding DataGridView in windows form
Jquery dropdowns
putty question
Secondary namespace in WSDL
How to allow/disallow with robots.txt a specific directory
Keep ACCESS db available after Excel opens it
Install Office Communicator 2007 fails on database
Exchange server on 2 different domains
Setting Textbox Focus based on Radio Button (ASP.NET C# Javascript)