demonmaster3k
April 1st, 2008, 02:37 PM
I know by now you have probably seen way too many revamps of my Halo Launcher program to actually enjoy it, but that's not why i'm posting this thread.
While I was following some advice given to me (I don't exactly remember who told me to do it), I came across a problem. What I'm trying to do here is create output text that is written to a textbox when an action has been done within the program. For example, when the user presses the compile button on one of my two functional compilers, I want to be able to display the output text from Tool.exe in the textbox. The compiler window is an MDI form, the textbox for logging is not (it's contained in a pannel that's part of a toolset called Dock Manager).
below is an image of how my program looks like:
http://img340.imageshack.us/img340/3038/generalscreenhf6.jpg
This program is written in C#. How would i go about fixing my problem.
Here's what I tried to do:
Main.cs
//header (using statements)
//constructor
public string editlog=""//a string variable to store the text from the log textbox.
public string outputText
{
get
{
editlog += textbox1.text;
return this.editolog;
}
set
{ this.editlog=value; }
}
//the rest of the programChild Form
//header
//constructor
Main logging=new Main();
private void button1_Click(object sender, EventArgs e)
{
//compiler code
logging.outputText +=(DateTime.Now+" output text"+dialog.filename+".\r\n");
}
//rest of program
the code in the spoiler tags compiles without incident, however after the splash screen loads up, the program freezes and my whole computer gets shafted and i get a system exception message.
While I was following some advice given to me (I don't exactly remember who told me to do it), I came across a problem. What I'm trying to do here is create output text that is written to a textbox when an action has been done within the program. For example, when the user presses the compile button on one of my two functional compilers, I want to be able to display the output text from Tool.exe in the textbox. The compiler window is an MDI form, the textbox for logging is not (it's contained in a pannel that's part of a toolset called Dock Manager).
below is an image of how my program looks like:
http://img340.imageshack.us/img340/3038/generalscreenhf6.jpg
This program is written in C#. How would i go about fixing my problem.
Here's what I tried to do:
Main.cs
//header (using statements)
//constructor
public string editlog=""//a string variable to store the text from the log textbox.
public string outputText
{
get
{
editlog += textbox1.text;
return this.editolog;
}
set
{ this.editlog=value; }
}
//the rest of the programChild Form
//header
//constructor
Main logging=new Main();
private void button1_Click(object sender, EventArgs e)
{
//compiler code
logging.outputText +=(DateTime.Now+" output text"+dialog.filename+".\r\n");
}
//rest of program
the code in the spoiler tags compiles without incident, however after the splash screen loads up, the program freezes and my whole computer gets shafted and i get a system exception message.