Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[TuT]Custom GUI[VB.NET]

Hello HackForums,
Here is a tutorial on making a simple form like this:
[img]http://img264.imageshack.us/img264/7431/thisp.jpg[/img]

To this:
[img]http://img522.imageshack.us/img522/8305/tothis.jpg[/img]

Here goes:

Design

1) Open Visual Basic 2008>Create Project>Windows Form Application
Name it: Custom theme.

2) Set the properties of Form1 to this:
BackColor - Black
FormBorderstyle - None
Opacity - 97%
StartPosition - Center

3) Add two Picture boxes and add these pictures to each of them:
PictureBox1 -
[img]http://img522.imageshack.us/img522/4282/minimize.jpg[/img]

PictureBox2 -
[img]http://img190.imageshack.us/img190/2086/closeyg.jpg[/img]

Code

Imports:
Code
Imports System.Drawing.Drawing2D

1) Double Click PictureBox1 and add the following code:
Code
WindowState = FormWindowState.Minimized
This minimizes the form.

2)Double Click PictureBox2 and add the folloing code:
Code
Me.Close()
This closes the form.

3)Below the code you just added, write this:
Code
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
Dim rec As Rectangle = New Rectangle(0, 0, Me.Width, Me.Height)
Dim myBrush As Brush = New Drawing.Drawing2D.LinearGradientBrush(rec, Color.Black, Color.Navy, Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal)
e.Graphics.FillRectangle(myBrush, rec)
End Sub

Download Source File:
MultiUpload: No0bs Custom Theme Tut.rar (69.62 KB)

That's it. Not much to it really.
All credits to me, No0b.
[img]http://img685.imageshack.us/img685/3681/8wzlu1.png[/img]
Nice. Can you show us the result ? :D
(Jan 22, 2010 02:22 AM)Ex-Coder Wrote:  Nice. Can you show us the result ? :D

[img]http://img522.imageshack.us/img522/8305/tothis.jpg[/img]
~BUMP~
only one reply? come on guys!
woww nice GUi !
Thanks man
great tut mate :D very helpfull
You're welcome. Working on a crypter tutorial, will post when I'm done.
Thanks for the tutorial. I look forward to more from you.
Great Business Managed Hosting at Veerotech
(Jan 22, 2010 06:12 AM)Widow's Peak Wrote:  Thanks for the tutorial. I look forward to more from you.

Thanks. Will be posting more.
nice TUT
i was out of ideas
but now im not
thanks.. 👍
Very Nice Tutorial Dude!!
Helpful
Thanks!
(Jan 22, 2010 01:37 AM)--([-S7N-])-- Wrote:  Hello HackForums,
Here is a tutorial on making a simple form like this:
[img]http://img264.imageshack.us/img264/7431/thisp.jpg[/img]

To this:
[img]http://img522.imageshack.us/img522/8305/tothis.jpg[/img]

Here goes:

Design

1) Open Visual Basic 2008>Create Project>Windows Form Application
Name it: Custom theme.

2) Set the properties of Form1 to this:
BackColor - Black
FormBorderstyle - None
Opacity - 97%
StartPosition - Center

3) Add two Picture boxes and add these pictures to each of them:
PictureBox1 -
[img]http://img522.imageshack.us/img522/4282/minimize.jpg[/img]

PictureBox2 -
[img]http://img190.imageshack.us/img190/2086/closeyg.jpg[/img]

Code

Imports:
Code
Imports System.Drawing.Drawing2D

1) Double Click PictureBox1 and add the following code:
Code
WindowState = FormWindowState.Minimized
This minimizes the form.

2)Double Click PictureBox2 and add the folloing code:
Code
Me.Close()
This closes the form.

3)Below the code you just added, write this:
Code
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
Dim rec As Rectangle = New Rectangle(0, 0, Me.Width, Me.Height)
Dim myBrush As Brush = New Drawing.Drawing2D.LinearGradientBrush(rec, Color.Black, Color.Navy, Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal)
e.Graphics.FillRectangle(myBrush, rec)
End Sub

Download Source File:
MultiUpload: No0bs Custom Theme Tut.rar (69.62 KB)

That's it. Not much to it really.
All credits to me, No0b.
[img]http://img685.imageshack.us/img685/3681/8wzlu1.png[/img]

I would perfer if you didnt use my images thank you.

If you would like to use them, ask.
(Jan 22, 2010 09:14 AM)Joey K Wrote:  I would perfer if you didnt use my images thank you.

If you would like to use them, ask.

LOL, do you mean the "Please Reply" image?
If yes, then may I use it?
If no, what images are you talking about?
(Jan 22, 2010 09:28 AM)--([-S7N-])-- Wrote:  LOL, do you mean the "Please Reply" image?
If yes, then may I use it?
If no, what images are you talking about?

Yes I mean the please reply image. I made that.

And yes, you may use it.
(Jan 22, 2010 09:33 AM)Joey K Wrote:  Yes I mean the please reply image. I made that.

And yes, you may use it.

Okay thanks. Sorry for not asking before, thought it was for public use.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by MintoJul 19, 2018 07:25 PM 10 691 Jul 19, 2018 07:25 PM
Last Post: 6577657534735
[Shell] by ImDeepWithWindowsJul 30, 2017 09:22 AM 3 266 Jul 30, 2017 09:22 AM
Last Post: ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™
[.NET] by BarretJan 28, 2017 12:12 PM 1 301 Jan 28, 2017 12:12 PM
Last Post: log dot zip