|
-
Jun 5th, 2006, 05:46 AM
#1
Thread Starter
Hyperactive Member
[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
-
Jun 5th, 2006, 12:45 PM
#2
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
-
Jun 5th, 2006, 01:24 PM
#3
Thread Starter
Hyperactive Member
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?
-
Jun 5th, 2006, 02:34 PM
#4
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)
-
Jun 5th, 2006, 02:43 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|