[Only registered and activated users can see links. Click Here To Register...]Quote:
picture in Attachments :)
Ty for guide :)
Very cool. Try looking at the properties of the main window. You can change the icon, name of the GUI, etc. all from there.Quote:
(picture)
Never call Program.Main().Quote:
Couldn't you just call the main() void in that certain void.
Program.Main();
Then it will load everything like the console does?
protected static void LoadForm()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Server());
}
If you want to enable visual styles that's fine... but I would take that off when you're putting it on your vps (since they have limited graphic power). It might cut into your performance a little if you move the window around or open new ones to manage something.Quote:
I noticed(for me anyway) button's and shit didn't look right.
So upon loading the GUI I just added:
Thanks for that fang, I already knew how to do some of it but loading on a new thread and the Cross-Threading violation exception bypass helped too. It's amazing how I didnt know it was that easy(I was manually creating a new thread "Thread r = new Thread") hehe.Code:protected static void LoadForm() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Server()); }
+K
I can see how that might be useful in other applications, but we're just making a GUI for a Conquer Online private server. We're not trying to make something that uses graphics that much... in fact, the way that you're describing would lead to poorer performance.Quote:
With my way you can draw on objects.
Would not lead to poor performance. It will make no difference at all, other than how it looks, it of course depends on if you do it 'right'. And true at that it's just for a COPServer.Quote:
I can see how that might be useful in other applications, but we're just making a GUI for a Conquer Online private server. We're not trying to make something that uses graphics that much... in fact, the way that you're describing would lead to poorer performance.
Traditionally, System.Drawing is used for programs that require heavy graphics or animations. Adding those kind of features to a GUI would be idiotic for a project like this... I would just stick with making a Form.Quote:
Would not lead to poor performance. It will make no difference at all, other than how it looks, it of course depends on if you do it 'right'. And true at that it's just for a COPServer.