|
You last visited: Today at 07:00
Advertisement
Windows form...
Discussion on Windows form... within the CO2 Private Server forum part of the Conquer Online 2 category.
11/14/2008, 16:17
|
#1
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
|
Windows form...
//
|
|
|
11/14/2008, 17:26
|
#2
|
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
|
Quote:
Originally Posted by Djago160
how do you add a windows form thingy in LOTF... i tried a few things but it doesn't seems to load.
|
The best solution to this problem is not to add one at all. Why waste the valuable memory on something that lame?
|
|
|
11/14/2008, 17:27
|
#3
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
|
yea good point... i could use commands to do the same thing
|
|
|
11/14/2008, 20:06
|
#4
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
|
Although I found it useful back in time, when I was hosting a server and I wanted to send a GM message. It`s faster to send it via a panel then logging in a game and etc etc. But meh, as it was said before, it`s just waste of memory
|
|
|
11/14/2008, 21:01
|
#5
|
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
|
What about console commands...?
Code:
.msg Hey this is a GM broadcast
etc..
|
|
|
11/14/2008, 21:08
|
#6
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
|
That is the proper way, this was back in time :P
|
|
|
11/14/2008, 22:13
|
#7
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
My LOTF base had console commands, and my new one does too :>
|
|
|
11/14/2008, 22:35
|
#8
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
Console commands are EASY to do,this is how it would look like,after the start **** where it loads everything,do this:
string Command = Console.ReadLine();
if (Command.StartsWith("/")
{
if (Command == "/time")
{
Console.WriteLine("Time is now : " + DateTime.Now);
}
if (Command == "/close")
{
World.SaveAllChars();
DataBase.AllOffline();
Environment.Exit(Environment.ExitCode);
}
if (Command == "/sendmsg")
{
Console.Write("Message : ")
string Msg = Console.ReadLine();
World.SendMsgToAll(Msg, "FromConsole", 2011);
}
}
else
{
Console.WriteLine("Always start an command with an '/' ");
}
I could go on and on with all fancy commands,those were just examples and done directly here on epvp so it could not be working,hope it helped someone.
Emme
|
|
|
11/15/2008, 11:59
|
#9
|
elite*gold: 0
Join Date: Oct 2006
Posts: 800
Received Thanks: 89
|
Quote:
Originally Posted by EmmeTheCoder
Console commands are EASY to do,this is how it would look like,after the start **** where it loads everything,do this:
string Command = Console.ReadLine();
if (Command.StartsWith("/")
{
if (Command == "/time")
{
Console.WriteLine("Time is now : " + DateTime.Now);
}
if (Command == "/close")
{
World.SaveAllChars();
DataBase.AllOffline();
Environment.Exit(Environment.ExitCode);
}
if (Command == "/sendmsg")
{
Console.Write("Message : ")
string Msg = Console.ReadLine();
World.SendMsgToAll(Msg, "FromConsole", 2011);
}
}
else
{
Console.WriteLine("Always start an command with an '/' ");
}
I could go on and on with all fancy commands,those were just examples and done directly here on epvp so it could not be working,hope it helped someone.
Emme
|
switchhhhh
|
|
|
11/15/2008, 23:04
|
#10
|
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
|
Quote:
Originally Posted by MushyPeas
switchhhhh ftw
|
...
|
|
|
 |
Similar Threads
|
[Part1]C# - Introducing (Windows Form)
05/08/2010 - CO2 Programming - 27 Replies
Part 1 - Introducing (WF)Today we are gonna look at C# at introducing to it and the basics of windows form.
Lets start with what C# is?
Microsoft C# Visual Studio is a programming language wich you can use to create programs or different applications. You can work with windows forms, xml, sockets, consoles and much more.
C# is similar to C & C++ or java, but is not the same language and they all work different. They got different ways to work with things on.
Your very first...
|
[Part3]C# - TextEditor (Windows Form)
04/28/2010 - CO2 Programming - 0 Replies
Now we will look at some more advanced things like creating a text editor, with load/save files.
First create a windowsformapplication.
Make sure you name it:
TextEditor
Now delete the "Form1.cs".
Now right click at your solution and choose:
Add > Windows Form
Make the name:
TextEditor
Now make the design fit into what you want.
|
[Part2]C# - Checkboxes (Windows Form)
04/27/2010 - CO2 Programming - 5 Replies
Part 2 - Checkboxes
Okay now you have learned about buttons and textboxes at basics.
What is checkboxes used for?
A checkbox is used to check for more choices.
You can use it for making vote buttons, using them instead putting 100Buttons or anything else.
Checkboxes are pretty cool to use in a windows form application.
Now we are gonna look at checkboxes.
First you have to make 2 checkboxes.
|
windows form
04/20/2010 - CO2 Private Server - 4 Replies
okay i made this windows form application.
But how do i save it as a program, so i can make it to a rar file, so it can be used.
lol is an easy question, dont flame me or ill report.
And close this after i got answer.
|
Image on Windows Form,
02/08/2010 - CO2 Private Server - 6 Replies
Anyone knows how to add the very small Image, of an Application Icon on a C# Windows form Application, Like,
http://img237.imageshack.us/img237/5849/imageke.p ng
flako27-
|
All times are GMT +1. The time now is 07:02.
|
|