Results 1 to 5 of 5

Thread: [1.0/1.1] Inserting a Console Application component in an application

  1. #1

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    [1.0/1.1] Inserting a Console Application component in an application

    Hi. Is there anyway to insert a console application component or something similar in a window application form?

    I'm trying to accept messages from a server and what I have right now is a rich text box displaying the messages. However, I saw some guys did one with having something like a console application window inside of the application and its there the messages were displayed just that they are not telling me how they did that.

    Does anyone know how to do this?

    Jennifer

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [1.0/1.1] Inserting a Console Application component in an application

    I suppose you ar eusing a windows forms app.
    1- Right click your project
    2- Click on properties
    3- Change "output type" to "console application"

    whenever you want to print to or read from the console window use the Console class
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    Re: [1.0/1.1] Inserting a Console Application component in an application

    No not like that ComputerJr. What I saw was the console application was embedded within the window application form like another component. I was sure it was a console application or related. Imagine a window application form with some butons and in the middle is a square looking just like a console application. It is not separate from the application, it's embedded within. And what I saw was a server, so as connections were coming in, the messages were being displayed, and there are two buttons on the form to change setting and exit.

    You know how to do that?

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [1.0/1.1] Inserting a Console Application component in an application

    JenniferBabe wants a regular Windows application with an option (Let's say, you click on the Tools men and choose Console) that will display a console geared towards her application.

    There are a few different ways to approach this. It can be done either by calling the console application itself within your application (you would then have to create seperate applications with the output as a console app to generate data within it) or you can roll your own with a textbox. Rolling your own might work better for you as you'll be able to control it and display it like you want it (a console that looks like Opera's or Firefox's Console would probably work better with a GUI)
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  5. #5
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [1.0/1.1] Inserting a Console Application component in an application

    That's right, but I there are some constrains on the TextBox. you know (you cannot "backspace" to the upper line unless you wrote it,....etc)

    So I guess it's better to look for it on the net, I think there are some similar controls
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width