Register for your free account! | Forgot your password?

You last visited: Today at 22:47

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


[Release] Adding form to load (LOTF)

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2008
Posts: 203
Received Thanks: 86
[Release] Adding form to load (LOTF)

I bet most of you already know how to do this, but this is just for the people that don't know how to make the form open up.

First, open LOTF.

Then right-click on COServerProject in the Solution Explorer.

Click Add > Windows Form...
Then Form1.cs should be in the Solution Explorer.

Now go to View > Toolbox and you can start adding buttons and stuff.

Now to make the form load with the console, you go to General.cs

Above Console.ReadLine(); , add this code:
Code:
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Form1());
Note: if you rename Form1.cs to something else, Make Application.Run(new YourFormName());

#Edit
If you get The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)
You need to add a reference by right-clicking on COServerProject > Add Reference > System.Core in the .NET tab.


Now the form will load and you make a control panel with the Toolbox provided on the side.

Look at my signature and you'll see how mine looks like. It looks kinda basic, but I'm accustomed to it.



justprownage is offline  
Old 04/02/2009, 23:41   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
also if it says sometime about using ______ in the form go to your pserver place and right click add SYSTEM.CORE =]] justprownage explains it better than me


PeTe Ninja is offline  
Old 04/02/2009, 23:52   #3
 
elite*gold: 0
Join Date: May 2008
Posts: 203
Received Thanks: 86
Quote:
Originally Posted by PeTe Ninja View Post
also if it says sometime about using ______ in the form go to your pserver place and right click add SYSTEM.CORE =]] justprownage explains it better than me
Thanks for reminding me ;D
justprownage is offline  
Old 04/03/2009, 00:18   #4
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
Code:
Form2 form = new Form2();
form.ShowDialog();
Yes?


kinshi88 is offline  
Thanks
1 User
Old 04/03/2009, 01:52   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
Quote:
Originally Posted by kinshi88 View Post
Code:
Form2 form = new Form2();
form.ShowDialog();
Yes?
what you trying to do? maybe your right i dont know, for mine i just made it do these things...

- new account creation ( if was already in there WILL NOT REPLACE ) (if made it will say created )

- change rates ( view rates also )
- open database (localhost/phpmyadmin)
- shutdown/restart server
- send message ingame
- delete all accounts and characters
- save all ( including last save time ) ( if shutdown server lastsave time didnt show )
- i was going to make a server restart timer.. but i didnt know how before and now i just thought of how i could do it lol xD

i deleted this source and the control panel >< it was awesome...

but yeah

still dont know what you trying to do kinshi so please say
PeTe Ninja is offline  
Old 04/03/2009, 02:13   #6
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
Makes the form show.
kinshi88 is offline  
Old 04/03/2009, 02:15   #7
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
oh xD.. dont know but what justprownage did worked for me
PeTe Ninja is offline  
Old 04/03/2009, 04:01   #8
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
Yeah, what he did works too.

Mines better tho =P
kinshi88 is offline  
Old 04/03/2009, 05:44   #9
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
justprownage did you get account creation to work? if you didnt i can tell you how i figured it out
PeTe Ninja is offline  
Old 04/03/2009, 13:20   #10
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 153
Quote:
Originally Posted by kinshi88 View Post
Yeah, what he did works too.

Mines better tho =P
Not really, it's the same thing.
tao4229 is offline  
Old 04/03/2009, 15:34   #11
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
Quote:
Originally Posted by tao4229 View Post
Not really, it's the same thing.
I know, that's why I put the =P
<3<3
kinshi88 is offline  
Old 04/03/2009, 15:50   #12
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
Quote:
Originally Posted by kinshi88 View Post
I know, that's why I put the =P
<3<3
woah i just noticed congratulations on becoming a moderator =]
PeTe Ninja is offline  
Old 04/04/2009, 00:39   #13
 
elite*gold: 0
Join Date: May 2008
Posts: 203
Received Thanks: 86
Quote:
Originally Posted by PeTe Ninja View Post
justprownage did you get account creation to work? if you didnt i can tell you how i figured it out
Gotten it to work 3 weeks ago..
justprownage is offline  
Old 04/04/2009, 01:32   #14
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
Quote:
Originally Posted by justprownage View Post
Gotten it to work 3 weeks ago..
nice i dont know when i got it but i dont have mine any more it was so awesome i wish you could of seen it , anyway

does yours replace the files or how did you make it work

i got mine to work by working with TheCoServer account creator from the first lotf source ( tanels & hadesets )
PeTe Ninja is offline  
Old 04/04/2009, 01:42   #15
 
elite*gold: 0
Join Date: May 2008
Posts: 203
Received Thanks: 86
Quote:
Originally Posted by PeTe Ninja View Post
nice i dont know when i got it but i dont have mine any more it was so awesome i wish you could of seen it , anyway

does yours replace the files or how did you make it work

i got mine to work by working with TheCoServer account creator from the first lotf source ( tanels & hadesets )
Well, mine is in ini's so It was much easier. ;-D


justprownage is offline  
Reply



« [Release] Color-Full Website Guide | [Release] Those still using LOTF »

Similar Threads
[Release] Adding Ninja LOTF
07/04/2011 - CO2 PServer Guides & Releases - 73 Replies
You can add (Ninja , New Character ) Items , Skills , NPcs ...... By following the links and info And i can call it It isn't code or something like that .. i can help you to add ninja on LOTF (5017) ------------------- First go to...
how cant load agility in lotf 5165
02/21/2010 - CO2 PServer - Discussions / Questions - 2 Replies
i want to cant load agility in lotf coz it get attak is big in archers and all characters so can any one tell me how to fix it or didnt load agility
[HELP] LOTF - Form
05/01/2009 - CO2 PServer - Discussions / Questions - 0 Replies
Hey all, i fallow the http://www.elitepvpers.com/forum/co2-pserver-discussions-questions/227896-release-adding-form-load-lotf.html I make own Form u can see here: http://img91.imageshack.us/img91/426/lolvex.jpg How i need? I need to fix...
[Release] Adding Form to your Server
09/21/2008 - CO2 PServer - Discussions / Questions - 35 Replies
You wanna have an Form like on CoFuture? -Then you are here right. Info: Says nothing about my English, I've tried my best 1) Create a new form "Control.cs" 2) Look in General.cs for: "public static System.IO.StreamWriter sw = new...
[Help] With adding skills in lotf
09/09/2008 - CO2 PServer - Discussions / Questions - 4 Replies
How exactly would i like add skills in lotf casue i want to add some more skills. I'll release it if some one could help me on how to do it :)



All times are GMT +2. The time now is 22:47.


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.