Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Opening notepad from own program

Opening notepad from own program

Scheduled Pinned Locked Moved C#
questionhtml
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dsl fahk
    wrote on last edited by
    #1

    I am trying to, in my web browser, have the show source HTML Option, but i would like it to show up in notepad like internet explorer does. How do i do this? Thanks.

    L 1 Reply Last reply
    0
    • D dsl fahk

      I am trying to, in my web browser, have the show source HTML Option, but i would like it to show up in notepad like internet explorer does. How do i do this? Thanks.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      you could try something like this:

      void OpenWithNotepad(string f) {
      Process proc=new Process();
      proc.StartInfo.FileName=@"C:\WINDOWS\system32\notepad.exe";
      proc.StartInfo.Arguments=f;
      proc.StartInfo.UseShellExecute=true;
      proc.Start();
      }

      :)

      Luc Pattyn

      D 1 Reply Last reply
      0
      • L Luc Pattyn

        you could try something like this:

        void OpenWithNotepad(string f) {
        Process proc=new Process();
        proc.StartInfo.FileName=@"C:\WINDOWS\system32\notepad.exe";
        proc.StartInfo.Arguments=f;
        proc.StartInfo.UseShellExecute=true;
        proc.Start();
        }

        :)

        Luc Pattyn

        D Offline
        D Offline
        dsl fahk
        wrote on last edited by
        #3

        I'd figured I would need a reference, and it says I do ("the type or namespace 'Process' could not be found.( are you missing a using directive or an assembly reference?)") this error occured twice. Thanks!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups