how to show open and save dialog box in c#?
Any Suggestions?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anurag SarkarPosted Feb 28, 2014, 5:35 AM
W3 School Java Script Pop Up in ASP.NET you can use this in ASP.NET
http://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt
THANKS..
Sarath KumarPosted Feb 28, 2014, 4:57 AM
Any suggestions......
Deepak Kumar ChoudharyPosted Feb 27, 2014, 11:56 AM
-right clik on refrence folder
-select add refrence option
-add system.windows.forms namespace
2.Add namespace " using System.Windows.Forms" in header
use this following code to show saveFileDialog box
[STAThread]//it is mandatory to use STAThread
static void Main(string[] args)
{
SaveFileDialog op = new SaveFileDialog();
op.ShowDialog();
Console.ReadLine();
}
use this following code to show OpenFileDialog box
[STAThread]
static void Main(string[] args)
{
OpenFileDialog op = new OpenFileDialog();
op.ShowDialog();
Console.ReadLine();
}
Than execute the program