Custom Gui

PollDo You Like My First Tutorial?
14 votes
Posts 1–15 of 17 · Page 1 of 2
Custom Gui
Hello,
This is an tutorial to make a custom gui
~
Step1:
Create New Form And Set Formborderstyle to None

Step2:
Add An Panel And Give It An Background Image (this is gonna be kinda header)

Step3:
Add This Under Public Class Form1:
Code:
    Dim Xpos As New Integer
    Dim Ypos As New Integer
    Dim Pos As New Point
Step4:
Add To Panel1_MouseDown:
Code:
        Xpos = Cursor.Position.X - Me.Location.X
        Ypos = Cursor.Position.Y - Me.Location.Y
That Part Should look like this:
Code:
    Private Sub Panel1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown
        Xpos = Cursor.Position.X - Me.Location.X
        Ypos = Cursor.Position.Y - Me.Location.Y
    End Sub
Step5:
Add To Panel1_Mousemove:
Code:
        If e.Button = Windows.Forms.MouseButtons.Left Then
            Pos = MousePosition
            Pos.X = Pos.X - Xpos
            Pos.Y = Pos.Y - Ypos
            Me.Location = Pos
        End If
That Part Should Look Like This:
Code:
    Private Sub Panel1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseMove
        If e.Button = Windows.Forms.MouseButtons.Left Then
            Pos = MousePosition
            Pos.X = Pos.X - Xpos
            Pos.Y = Pos.Y - Ypos
            Me.Location = Pos
        End If
    End Sub
Step6:
Add 2 Labels And Put Them In The "Header" And Make Them Transparant
Label1.text = X
Label2.text = _
Step7:
Label1_click:
Code:
End
Label2_click:
Code:
        Me.WindowState = FormWindowState.Minimized

Its my first tutorials so it isnt the best one but:
Good Tutorial?
Got Tutorial Tips? Tell ME (A)

Example:
Red Header(Downloaded), Blue Flames(Downloaded) As Background and you get this:
Should be in the visual basic section
But anyway lol

Also, U should put some screenshots so people can see :P
Quote Originally Posted by ac1d_buRn View Post
Should be in the visual basic section
But anyway lol

Also, U should put some screenshots so people can see :P
Well, it is a tutorial, and it is in the "Tutorials" section. I guess it can be kind of confusing though, since we have a tutorials section, and sub tutorials sections within programming sections. WTF.
Alright
(To Short)
Posted An Screen
Sorry For Double post
But please someone vote :P
I voted no, I'll tell you why.

A. You provided source code readily available on the web (everywhere)
B. It's not much of a tutorial, tutorials are step by step, and better with images and screenshots
C. You don't know enough about vb.net to write tutorials, essentially all you are doing (no offense) is copying code from mpgh and the web and pasting them (modifying them ever so slightly) and calling it a tutorial.

This is in no way meant to be offensive, Spend some time (a few years maybe) learning the language, then start writing tuts (or when you feel you have learned enough to do so)

More so, When it comes to custom forms in vb.net it's a lot easier then all that code, A professional coders Job is to keep the code as neat as possible, if you can achieve something inside of the visual environment (form designer generated) then it is better to do so .
:S
tough it whas usefull and good tutorial
its step by step
and there are enough tutorials without pictures :S
Quote Originally Posted by Highlander View Post
:S
tough it whas usefull and good tutorial
its step by step
and there are enough tutorials without pictures :S
Yes, Leechers and copy and pasters will love it, but won't learn from it
ok alright Ill Make it more advanced next tutorial
nice 1 man keep it coming
Quote Originally Posted by Highlander View Post
Ty
Too Short
thts spam if u need to express ur thanks just click the thanks button!
...... (Posted comment)

Edited out:

Sorry, Shouldn't have posted here.....

My mistake
A tutorial, i am so noob at VB, how am i suppose to understand this aye ?
All i know is how to reate buttons, links, and msgboxes. Not even close to this stage. So you need better and noober steps.
lol, Copy and pasting VB language, Its 1 of the easiest language, I am pro at it just havent shown it yet,
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?