Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 16:31

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

Advertisement



[EasyGuide]Draggable Graphical User Interface(FormBorederStyle= None).

Discussion on [EasyGuide]Draggable Graphical User Interface(FormBorederStyle= None). within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
EOS 60D's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 94
Received Thanks: 13
[EasyGuide]Draggable Graphical User Interface(FormBorederStyle= None).

Hello fella just wanna share how to make a draggable GUI and fit your image..

Things needed:

*Your desired image.
*Photoshop or Paint.net().. - Edit your image make sure to remove the background.(some image has white background color) I uses paint.net to remove it.
*VisualStudio


Instructions:

First make a new Windows Form Project :






Change BorderStyle to None:



Import a background image to your GUI:

BackgroundImageLayout should be : Stretch




Change the BackColor and the TransparencyKey to your desire color! Take note BackColor and TransparencyKey should be the same Color.:

In this case i use black:

BackColor:


TransparencyKey:


Set StartPosition to CenterScreen : so it will start at center of your screen. It doesnt really matter..


It should look like this:


YOU ARE GOOD TO GO!

Debug it.

This is what it looks like after:


Last part for draggable GUI:

Here some reference code to make it draggable:
Code:
        protected override void WndProc(ref Message m)
        {
            switch (m.Msg)
            {
                case 132:
                    base.WndProc(ref m);
                    if ((int)m.Result == 1)
                        m.Result = (IntPtr)2;
                    return;

            }

            base.WndProc(ref m);
        }

There you go you have now your draggable borderless GUI!


Heres my custom AutoPatcher GUI:
PS: CREDITS TO OCULARIS FOR THE TEMPLATE!

Enjoy your new custom GUI! Good luck.
Attached Files
File Type: rar Example.rar (615.8 KB, 134 views)
EOS 60D is offline  
Thanks
1 User
Old 01/29/2014, 23:02   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
So, if I understand this guide correctly, it's just for making a form in C#?
Like... this guide here?
Spirited is offline  
Old 01/29/2014, 23:30   #3
 
EOS 60D's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 94
Received Thanks: 13
Quote:
Originally Posted by Spirited Fang View Post
So, if I understand this guide correctly, it's just for making a form in C#?
Like... this guide here?
I know you made a guide for GUI..This is just a guide how to make image fit to your GUI with no borderstyle and make it draggable.. i know its still GUI topic but in different case...
EOS 60D is offline  
Old 01/30/2014, 00:24   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by EOS 60D View Post
I know you made a guide for GUI..This is just a guide how to make image fit to your GUI with no borderstyle and make it draggable.. i know its still GUI topic but in different case...
Oh, duh. I see now. I forgot to add that to my tutorial. Well awesome job then. Sorry for my confusion.
Spirited is offline  
Old 01/30/2014, 05:31   #5
 
EOS 60D's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 94
Received Thanks: 13
Quote:
Originally Posted by Spirited Fang View Post
Oh, duh. I see now. I forgot to add that to my tutorial. Well awesome job then. Sorry for my confusion.
Dang theres no need to say sorry dude, and i wouldnt say its a good job,, this stuff can be find on google. i just wanna share this guide to those who wants to know how its done..
EOS 60D is offline  
Old 01/30/2014, 12:48   #6
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Why are ppl still using Windows Forms? WPF can do the same, with much higher performance.
Y u k i is offline  
Old 01/31/2014, 00:17   #7


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
Because it`s super easy to use and does what it needs to do perfectly well. It all depends on what you`re making, if you`re creating a performance dependent, highly graphical application, then WPF is the way to go. WinForms does its job well for what it was made for.
KraHen is offline  
Thanks
1 User
Old 01/31/2014, 03:21   #8
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
Quote:
Originally Posted by KraHen View Post
Because it`s super easy to use and does what it needs to do perfectly well. It all depends on what you`re making, if you`re creating a performance dependent, highly graphical application, then WPF is the way to go. WinForms does its job well for what it was made for.
Then again, if you work on a solid base even if it is for something small you should still do it. Should always make the program expandable even if it is not needed, you will never know whenever it can come in handy.
turk55 is offline  
Old 02/04/2014, 17:32   #9
 
Ultimation's Avatar
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,425
Received Thanks: 1,565
i can't believe this is posted in Conquer guides lol.... the same thing can be applied to any game, shouldn't it be in a general section?
Ultimation is offline  
Thanks
1 User
Old 06/04/2014, 07:22   #10
 
elite*gold: 0
Join Date: Jan 2014
Posts: 69
Received Thanks: 2
thanks a lot , awesome
justmadeit96 is offline  
Reply


Similar Threads Similar Threads
[Updated Guide] How to Create a Graphical User Interface (GUI) With Console
04/16/2013 - CO2 PServer Guides & Releases - 10 Replies
Introduction: Hey everyone. I was requested to remake this guide, so I am. It's a lot to rewrite, so don't expect perfect grammar and spelling (I don't have the time to check). Also, I'm not saying that this is the most efficient way of doing things - I'm just showing you how I do it for my server. I'm also assuming that you're working on a Conquer Online server, but remember that this can be applied to any C# application, really. Creating the Graphical User Interface: I'm going to be...
Graphical User Interface (GUI)
10/06/2012 - Conquer Online 2 - 3 Replies
Hello, Well a long time a go there was a release for how to make a Graphical User Interface (GUI) but i can't seem to find it anymore. :confused: Yes used search Help is appreciated ;)
FtH User Interface (Complete Interface)
09/05/2006 - World of Warcraft - 10 Replies
Hallo , ich will euch das wohl beste Interface nicht vorenthalten. For the Horde hat mit seiner ersten Version seines eigenen Interfaces schon gute arbeit geleistet. Aber das naja nich mehr ganz aktuele ist noch besser. http://web4.h60972.serverkompetenz.net/for...p?th readid=3465 <- DL Link. Dort gibt es aber auch den kompletten Guide zu dem Interface. Achja FTH benutzt X-Raid , nicht jedem seine Sache. Das Interface ist aber auch mit CT_RAID kompatibel.
User Interface von wow
12/10/2004 - WoW Guides & Templates - 2 Replies
auf worldofwarcraft.com wurde heute ein eigenes Tool gebastelt um User Interfaces zu basteln! links: Tool Tutorial worldofwarcraft.com ps: mmhh xml? ähm ist das das xml, was man auch bei selhtml ne einführung drüber bekommt?



All times are GMT +2. The time now is 16:31.


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.