damn, man, that way is horrible :D
using System;
using System.Diagnostics;
namespace NotePad
{
class MainClass
{
public static void Main(string[] args)
{
ProcessStartInfo info = new
ProcessStartInfo(@"C:\WINDOWS\notepad.exe"); //here it is
Process process = Process.Start(info);
}
}
}
but this just run original notepad.exe. If you wish to make your own, you
must do it as I said before...
2009/6/23 Scott M. <[email protected]>
>
> 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 -
>