Hello fella just wanna share how to make a draggable GUI and fit your image..
Things needed:
*Your desired image.
*Photoshop or Paint.net([Only registered and activated users can see links. Click Here To Register...]).. - 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 :
[Only registered and activated users can see links. Click Here To Register...]
Change BorderStyle to None:
[Only registered and activated users can see links. Click Here To Register...]
Import a background image to your GUI:
BackgroundImageLayout should be : Stretch
[Only registered and activated users can see links. Click Here To Register...]
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:
[Only registered and activated users can see links. Click Here To Register...]
TransparencyKey:
[Only registered and activated users can see links. Click Here To Register...]
Set StartPosition to CenterScreen : so it will start at center of your screen. It doesnt really matter..
[Only registered and activated users can see links. Click Here To Register...]
It should look like this:
[Only registered and activated users can see links. Click Here To Register...]
YOU ARE GOOD TO GO!
Debug it.
This is what it looks like after:
[Only registered and activated users can see links. Click Here To Register...]
Last part for draggable GUI:
Here some reference code to make it draggable:
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.
Things needed:
*Your desired image.
*Photoshop or Paint.net([Only registered and activated users can see links. Click Here To Register...]).. - 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 :
[Only registered and activated users can see links. Click Here To Register...]
Change BorderStyle to None:
[Only registered and activated users can see links. Click Here To Register...]
Import a background image to your GUI:
BackgroundImageLayout should be : Stretch
[Only registered and activated users can see links. Click Here To Register...]
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:
[Only registered and activated users can see links. Click Here To Register...]
TransparencyKey:
[Only registered and activated users can see links. Click Here To Register...]
Set StartPosition to CenterScreen : so it will start at center of your screen. It doesnt really matter..
[Only registered and activated users can see links. Click Here To Register...]
It should look like this:
[Only registered and activated users can see links. Click Here To Register...]
YOU ARE GOOD TO GO!
Debug it.
This is what it looks like after:
[Only registered and activated users can see links. Click Here To Register...]
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.