Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 10:49

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

Advertisement



[Question]GUI Intereface Input Text.

Discussion on [Question]GUI Intereface Input Text. within the CO2 Private Server forum part of the Conquer Online 2 category.

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: 912
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


Similar Threads Similar Threads
Question// LvlBot etc.Siehe text.
04/18/2010 - Metin2 Private Server - 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 ihn,logge mich ein und kann nun auf "Neues Spiel Starten" Klicken,aber ich muss erstmal den metin2client.bin öffnen. So,Da ich's auf Pservern haben "möchte" und nicht auf Metin2De, und die Pserver keine metin2client.bin im ordner enthalten,sondern .exe...
Question about Coding.... Please Read and Input Your Idea.
03/09/2010 - CO2 Private Server - 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 my dilemma is they are claiming that each of these can imitate people, have their own attitude and can talk to you, as well as normal humans. Just seems odd to me, I've never seen anything like it. The people claim: They've got the basic GM...
[Question] Text on map + new Furniture (5165)
02/09/2010 - CO2 Private Server - 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 been thinking of making new objects. For example in the houses, you can put your own furniture, how can I add some? Which program can/should I use? Note: i know this is client sided, and I don't know if it makes a difference for which source you...
[Question] server login text
03/12/2009 - Conquer Online 2 - 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 - Conquer Online 2 - 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 number of kills left displayed in the chat. This way, rather than click "Items" and put my mouse over it, (which requires stopping and blocking half your screen) I can just hit Alt-A or something convinient for where I place my hand to show my...



All times are GMT +2. The time now is 10:49.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.