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. Visual Basic
  4. Help files using Notepad

Help files using Notepad

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorialquestion
8 Posts 4 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.
  • R Offline
    R Offline
    rswipe
    wrote on last edited by
    #1

    Hi All, Using Notepad is a convenient method of displaying a HELP file. Does anybody know how to control the Notepad properties once it has been invoked? i.e how can you disable menu items and the text window in VB.NET code? thanks

    C D 2 Replies Last reply
    0
    • R rswipe

      Hi All, Using Notepad is a convenient method of displaying a HELP file. Does anybody know how to control the Notepad properties once it has been invoked? i.e how can you disable menu items and the text window in VB.NET code? thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Wow - that's a really bad idea. What's so hard about creating your own dialog with a window to display text ? Or live with the fact that Notepad will let them change/save it. You can control Notepad, but it's more work than you need to do, and it sure can't be done with a language as limited as VB. Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • R rswipe

        Hi All, Using Notepad is a convenient method of displaying a HELP file. Does anybody know how to control the Notepad properties once it has been invoked? i.e how can you disable menu items and the text window in VB.NET code? thanks

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        rswipe wrote: how can you disable menu items and the text window in VB.NET code? Since Notepad doesn't expose any kind of automation interface, you'll have great difficulty in pulling this off, in ANY language, Christian! ;). Christian is correct, though. It's much quicker, and FAR easier, to build a form specifically for displaying your help file in a read-only TextBox. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        C 1 Reply Last reply
        0
        • D Dave Kreskowiak

          rswipe wrote: how can you disable menu items and the text window in VB.NET code? Since Notepad doesn't expose any kind of automation interface, you'll have great difficulty in pulling this off, in ANY language, Christian! ;). Christian is correct, though. It's much quicker, and FAR easier, to build a form specifically for displaying your help file in a read-only TextBox. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Dave Kreskowiak wrote: Since Notepad doesn't expose any kind of automation interface, you'll have great difficulty in pulling this off, in ANY language, Christian! True, but there are articles here on CP that do it in C++, I believe. Like I said, it's a hell of a lot of work, and a complete waste of time ( the article was proof of concept more than 'here's something useful' ). Christian Graus - Microsoft MVP - C++

          D 1 Reply Last reply
          0
          • C Christian Graus

            Dave Kreskowiak wrote: Since Notepad doesn't expose any kind of automation interface, you'll have great difficulty in pulling this off, in ANY language, Christian! True, but there are articles here on CP that do it in C++, I believe. Like I said, it's a hell of a lot of work, and a complete waste of time ( the article was proof of concept more than 'here's something useful' ). Christian Graus - Microsoft MVP - C++

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Christian Graus wrote: Like I said, it's a hell of a lot of work, I haven't seen the article, but, I'm going to guess it involves window finding and sending a bunch of messages to tell the controls to disable themselves? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            R 1 Reply Last reply
            0
            • D Dave Kreskowiak

              Christian Graus wrote: Like I said, it's a hell of a lot of work, I haven't seen the article, but, I'm going to guess it involves window finding and sending a bunch of messages to tell the controls to disable themselves? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              R Offline
              R Offline
              rswipe
              wrote on last edited by
              #6

              OK guys, thanks for the comments. i agree making your own dialog box isn't so difficult although getting the format right is sometimes time consuming depending on how big the help file is. i'm all for an easy life and if there was a "one-liner" to do what i wanted then all the better. thanks anyway.

              A 1 Reply Last reply
              0
              • R rswipe

                OK guys, thanks for the comments. i agree making your own dialog box isn't so difficult although getting the format right is sometimes time consuming depending on how big the help file is. i'm all for an easy life and if there was a "one-liner" to do what i wanted then all the better. thanks anyway.

                A Offline
                A Offline
                Anonymous
                wrote on last edited by
                #7

                I'm not quite sure what you mean by "format". But it is easy enough to place a read-only RichTextBox control on a dialog box you create. Then you can simply load your help file into the RichTextBox with the LoadFile command (RichTextBox1.LoadFile("help.rtf")). It's a "one-liner" and unlike NotePad, you can display a RTF where you can have more than just text! If that fails to please, you could always use the HTML Help Workshop to create a help file :)

                R 1 Reply Last reply
                0
                • A Anonymous

                  I'm not quite sure what you mean by "format". But it is easy enough to place a read-only RichTextBox control on a dialog box you create. Then you can simply load your help file into the RichTextBox with the LoadFile command (RichTextBox1.LoadFile("help.rtf")). It's a "one-liner" and unlike NotePad, you can display a RTF where you can have more than just text! If that fails to please, you could always use the HTML Help Workshop to create a help file :)

                  R Offline
                  R Offline
                  rswipe
                  wrote on last edited by
                  #8

                  thanks, good idea.

                  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