I just tried this. If it can't find notepad.exe on your system, you
get a misleading error message.  Here is my code;

using System;
using System.Diagnostics;

namespace Notepad
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Process notePad = new Process();
            notePad.StartInfo.FileName = @"C:\WINDOWS
\system32\notepad.exe";
            notePad.StartInfo.Arguments = "c:\myfile.txt";
            notePad.Start();
        }
    }
}




On Jun 22, 2:22 pm, The_Fruitman <[email protected]> wrote:
> Yes.
>
> System.Diagnostics.Process.Start("notepad.exe")
>
> If you wanted something more, post a better worded question, your
> problem and code you've tried.
>
> On Jun 22, 10:19 am, Afewerki <[email protected]> wrote:
>
>
>
> > can I create Notepad in VB2008? If your answer is yes. how I can? tell
> > me- Hide quoted text -
>
> - Show quoted text -

Reply via email to