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. How do I create a command window/console?

How do I create a command window/console?

Scheduled Pinned Locked Moved C#
questioncsharpvisual-studiotutorial
7 Posts 3 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.
  • S Offline
    S Offline
    se99ts
    wrote on last edited by
    #1

    I was just wondering if anyone knew how to create a command window or console as found in VS.net? I have had a look arround and there dont seem to be any tutorials or even any references to them. If there arnt any examples does anyone have any hints or tips on creating one? Thanks Tim

    P 1 Reply Last reply
    0
    • S se99ts

      I was just wondering if anyone knew how to create a command window or console as found in VS.net? I have had a look arround and there dont seem to be any tutorials or even any references to them. If there arnt any examples does anyone have any hints or tips on creating one? Thanks Tim

      P Offline
      P Offline
      perlmunger
      wrote on last edited by
      #2

      You're question is a little confusing. Are you asking how to make a console application (i.e. an application with no graphical UI)? What command windows/console in VS .NET are you referring to? -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

      S 1 Reply Last reply
      0
      • P perlmunger

        You're question is a little confusing. Are you asking how to make a console application (i.e. an application with no graphical UI)? What command windows/console in VS .NET are you referring to? -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

        S Offline
        S Offline
        se99ts
        wrote on last edited by
        #3

        i dont want to make a console application i want to make a windows application with a console in it (as seen in VS.net if you go... View> Other windows> Command Window. or on the keys... Ctrl+Alt+A) I will use the console in a seperate window to my main app to perform some program specific functions and to allow users to write and run scripts of multiple operations. Hope this helps clarify things?

        P 1 Reply Last reply
        0
        • S se99ts

          i dont want to make a console application i want to make a windows application with a console in it (as seen in VS.net if you go... View> Other windows> Command Window. or on the keys... Ctrl+Alt+A) I will use the console in a seperate window to my main app to perform some program specific functions and to allow users to write and run scripts of multiple operations. Hope this helps clarify things?

          P Offline
          P Offline
          perlmunger
          wrote on last edited by
          #4

          I see. OK. Well this really depends are your exact needs. Frankly, I'm not sure how they implement the expanding and contracting thing because I've never tried it (and I know that that is not what you're concerned about), but it occurs to me that no matter how you implement your user interface (e.g. splitters, separate windows, etc.) as long as you have a way of getting input (e.g. a text box), you should be able to just read the commands whenever the enter key is pressed inside of that edit area. This probably doesn't really help you much, but I guess I'm not sure what the big mystery is. I'm probably over simplifying, so tell me what else I need to know to get to the heart of the issue. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

          J S 2 Replies Last reply
          0
          • P perlmunger

            I see. OK. Well this really depends are your exact needs. Frankly, I'm not sure how they implement the expanding and contracting thing because I've never tried it (and I know that that is not what you're concerned about), but it occurs to me that no matter how you implement your user interface (e.g. splitters, separate windows, etc.) as long as you have a way of getting input (e.g. a text box), you should be able to just read the commands whenever the enter key is pressed inside of that edit area. This probably doesn't really help you much, but I guess I'm not sure what the big mystery is. I'm probably over simplifying, so tell me what else I need to know to get to the heart of the issue. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

            J Offline
            J Offline
            jtmtv18
            wrote on last edited by
            #5

            i implemented a really simple console app for my text editor..if you would like i can email you the source so you can get a general idea....(its easy to do you will see) Jesse M The Code Project Is Your Friend...

            S 1 Reply Last reply
            0
            • P perlmunger

              I see. OK. Well this really depends are your exact needs. Frankly, I'm not sure how they implement the expanding and contracting thing because I've never tried it (and I know that that is not what you're concerned about), but it occurs to me that no matter how you implement your user interface (e.g. splitters, separate windows, etc.) as long as you have a way of getting input (e.g. a text box), you should be able to just read the commands whenever the enter key is pressed inside of that edit area. This probably doesn't really help you much, but I guess I'm not sure what the big mystery is. I'm probably over simplifying, so tell me what else I need to know to get to the heart of the issue. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

              S Offline
              S Offline
              se99ts
              wrote on last edited by
              #6

              Im not worried about the expanding and contracting at the minute, i can sort that out at a later date as i need that in other parts of the application. Im not to worried about the GUI at the minute either, it will be in a box similar to that in VS.net but thats not essential. What i was wondering is if there was any implimentation of it as ive used languages that have it (ie TCL/TK) and i think java has one? i dont know how id go about calling commands "dynamically" though? would i just have to have switch/case statements for every posible command that could be run or is there a way of calling methods "on the fly"? I dont think you are over simplyfying it at all i think i needeed your imput to see that i was over complication the whole thing. My only worry is about the fact that some characters will need to be read-only, others writeable etc. do you have any ideas on how i could deal with that? Thanx

              1 Reply Last reply
              0
              • J jtmtv18

                i implemented a really simple console app for my text editor..if you would like i can email you the source so you can get a general idea....(its easy to do you will see) Jesse M The Code Project Is Your Friend...

                S Offline
                S Offline
                se99ts
                wrote on last edited by
                #7

                if you could email it to me id be most greatful, and it would help me a great deal. My mail is blue@nildram.co.uk

                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