Register for your free account! | Forgot your password?

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

  • 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   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
is a windowsform right?


.Summer is offline  
Old   #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   #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   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 49
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   #6
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 907
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



« Previous Thread | Next Thread »

Similar Threads
Question// LvlBot etc.Siehe text.
Huhu Leute, Erstmal entschuldigung für die komische Überschrift.^^ Naja jetzt zu meiner Frage, Ihr kennt sicher alle den Metin2 Lvl bot. Ich...
4 Replies - Metin2 PServer - Discussions / Questions
Question about Coding.... Please Read and Input Your Idea.
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...
14 Replies - CO2 PServer - Discussions / Questions
[Question] Text on map + new Furniture (5165)
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,...
4 Replies - CO2 PServer - Discussions / Questions
[Question] server login text
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...
1 Replies - CO2 Main - Discussions / Questions
[Question] Sending text to CO's chat lines
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...
2 Replies - CO2 Main - Discussions / Questions



All times are GMT +1. The time now is 04:56.


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

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