Wednesday, April 27, 2016 | By: nika perales

Opening notepad from C# app

In this post i'll show you how to open notepad windows application from our C# project. This is useful when you want to display a particular text file to a user.
Private void RunNotepad()
{
 Process Notepadprocess  = new Process();
 Notepadprocess.StartInfo = new ProcessStartInfo("notepad.exe", "E:\\New.txt");
 Notepadprocess.Start();
}
 

0 comments:

Post a Comment