Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions
You last visited: Today at 21:07

  • Please register to post and access all features, it's quick, easy and FREE!


[Question]GUI Intereface Input Text.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 129
Received Thanks: 30
[Question]GUI Intereface Input Text.

Hey, needing help on my source(USES GUI) i made it GUI but i don't understand how do i do the input text?

Like elite-coemu it starts up server and when u press start it inputs the text in the text box

Like
so if i put console.writeline("Bleh");
Or
Database.LoadMobs;

I want it to input that text in the text box any ideas?



Øblivion is offline  
Old 06/08/2010, 11:34   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
is a windowsform right?


.Summer is offline  
Old 06/08/2010, 14:55   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Code:
if (textBox1.Text; == "Bleh")
If you want it to read the text.
Code:
textBox1.AppendText(Console.ReadLine);
If you want to write the console's text. (I doubt this lol.)

Just random guesses, I never use WindowsForms
Basser is offline  
Thanks
1 User
Old 06/08/2010, 20:28   #4
 
elite*gold: 0
Join Date: Feb 2010
Posts: 129
Received Thanks: 30
Quote:
Originally Posted by .Summer View Post
is a windowsform right?
What part of GUI don't you understand?

@Basser would that even work?


Øblivion is offline  
Thanks
1 User
Old 06/08/2010, 22:59   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 50
You can direct the input and output of the System.Console class through its SetOut(TextWriter) and SetIn(TextReader) methods. One solution could be to create classes that extend both System.IO.TextWriter and System.IO.TextReader, and take a System.Windows.Forms.TextBoxBase, and implement the abstract and override the virtual methods to read and append text to the TextBoxBase object through its Text member and other methods.
s.bat is offline  
Old 06/08/2010, 23:24   #6
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
Quote:
Originally Posted by s.bat View Post
You can direct the input and output of the System.Console class through its SetOut(TextWriter) and SetIn(TextReader) methods. One solution could be to create classes that extend both System.IO.TextWriter and System.IO.TextReader, and take a System.Windows.Forms.TextBoxBase, and implement the abstract and override the virtual methods to read and append text to the TextBoxBase object through its Text member and other methods.
I highly doubt he understood anything you said =P

Just make a rich text box, right click it, properties.
Now around the top you'll see the value Name, that's like the variable name for it.
richTextBox1.Text += "Hello\n";


kinshi88 is offline  
Reply



« 5017 LeveL Source | whisper »

Similar Threads
Question// LvlBot etc.Siehe text.
04/18/2010 - Metin2 PServer - Discussions / Questions - 4 Replies
Huhu Leute, Erstmal entschuldigung für die komische Überschrift.^^ Naja jetzt zu meiner Frage, Ihr kennt sicher alle den Metin2 Lvl bot. Ich habe ihn entpackt bzw. installiert und würde ihn gerne auf Pservern Nutzen. Also, Ich starte...
Question about Coding.... Please Read and Input Your Idea.
03/09/2010 - CO2 PServer - Discussions / Questions - 14 Replies
Well basically I want to know if anyone has ever heard of or seen anything like this before. A person I met has this pserver, and on it they have what they call Epics. They claim as if these are AI or Artificial Intelligence Characters. But you see...
[Question] Text on map + new Furniture (5165)
02/09/2010 - CO2 PServer - Discussions / Questions - 4 Replies
So, how/what do I edit the client so that I can write text on the floor for example in Twin City, in the middle I want it to say on the floor, printed, "Conquer Emulator". How can I do this, I just thought of this. #UPDATE: Oh also, I've...
[Question] server login text
03/12/2009 - CO2 Main - Discussions / Questions - 1 Replies
Hey, Where can I changed the login text of the server. Like if I login in my server I see welcome to blahblahblah visit http://.......com/ for more information and stuff like that how can I change it in what file? Thanks,
[Question] Sending text to CO's chat lines
09/13/2008 - CO2 Main - Discussions / Questions - 2 Replies
How would I send text to the chat or to the red system text in the upper left corner of the screen? Would I have to send my own packet? Basically I want to: Hit a hotkey Read in the number of kills I have for demon exterminator. Have the...



All times are GMT +2. The time now is 21:07.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.