Hi,,
I want to open txt file in notepad with messagebox ok button..
Loading
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.
Munesh SharmaPosted May 14, 2015, 6:49 AM
string message = "Do you want to close this window?";
string title = "Text to notepad";
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
DialogResult result = MessageBox.Show(message, title, buttons);
if (result == DialogResult.Yes)
{
System.Diagnostics.Process.Start().//u need this namespace}
else
{
// Do something
}
Munesh SharmaPosted May 14, 2015, 7:34 AM
Feroz KhanPosted May 14, 2015, 7:07 AM
Munesh SharmaPosted May 14, 2015, 6:50 AM
http://stackoverflow.com/questions/13377020/open-a-text-file-in-notepad-with-single-instance
http://www.homeandlearn.co.uk/csharp/csharp_s11p1.html