Page 1 of 5 123 ... LastLast
Results 1 to 15 of 64
  1. #1
    markO1O8's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    433
    Reputation
    24
    Thanks
    104
    My Mood
    Amazed

    Exclamation How To Make A Cross-Hair (Simple)

    Hello Kiddies At MPGH Today I show you how to
    make a simple crosshair in Visual Basics 2008 - 10


    [VB2008-10] CrossFire Crosshair

    ☻So First: Start Up Your Visual Basics ,

    ☻Click Create New Form Application,

    ☻Rename It Anything You Want,

    ☻Build It By Framework.NET 2.0,
    ,

    ☻You Need: 2 Forms Name The Second Crosshair.vb,

    ☻For crosshair.vb make its Size 50,50 Of by
    the properties, Then Change The Background
    Colour but not to green then got to the bottom of
    Properties and change the transparent key to the same
    colour,

    ☻Change The Border Style Of crosshair.vb To None,

    ☻In Form1.vb Add A Time, Enable it True By The Properties,
    Double Click On Your Form1 Border Design And Add This Code After
    The Public Class Form 1:

    Code:
     Private Property result As Short
        Private Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Integer) As Short
    We Need This Code For The Hot-keys To Work And Be Recognized,

    ☻After That Double Click The Timer And Add The Following:

    Code:
      For i = 6 To 255
    
    
                result = 0
                result = GetAsyncKeyState(i)
    
    
                If GetAsyncKeyState(Keys.F1) Then
                    crosshair.Show()
                End If
    
                If GetAsyncKeyState(Keys.F2) Then
                    crosshair.Hide()
                End If
            Next i
    here we use F1 to show up our crosshair and F2 to hide it!
    and the (i) / Next i ,.. loop is very important for the hot-keys
    because we like that it work for all Operating-systems,

    ☻Now Go on crossfire.vb and go to the Properties And Go To
    Top Most At The Bottom Enable That True Then Go Near The
    Top And Make Enable True,

    ☻Go On Properties Go To The Bottom And Change the
    StartPosition To The CenterScreen So You Turn It On
    And Of In Game So It Fits Screen Size

    ☻Keep On crossfire.vb double click it and Replace the
    crosshair_Load and that with this:
    Code:
    Private Sub Crosshair_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
            Dim greenPen As New Drawing.Pen(Color.Green, 1)
    
            e.Graphics.DrawLine(greenPen, 25, 0, 25, 50)
            e.Graphics.DrawLine(greenPen, 0, 25, 50, 25)
        End Sub
    Your Codes Should Be Like This:
    Form1.vb Code:

    Code For crosshair.vb:




    If All Done Click F5 And Debug It

    If You Think The Crosshair is to big Then:
    ☻remove this code from the crosshair.vb and
    change the size to 25,25,
    ☻Then Go to Tools And Scroll Down To Visual Basic Power
    Pack And Draw Your Own,
    ☻Make Sure You Leave The StartPosition.


    Heres Mine:



    My Template Is Downloadable Below Dont Download
    It Get Your VB Skills Up First Hehe

    Virus Scan: VirusTotal - Free Online Virus, Malware and URL Scanner

    Virus Scan2: I Need Another But Not Viruscan.org It Says
    Too Many Files

    Click Thanks And KEEP MPGH Alive Hehe


    Last edited by Ghost; 04-14-2011 at 09:48 AM.
    [CENTER]I'm back!

  2. The Following 31 Users Say Thank You to markO1O8 For This Useful Post:

    -MAJ (09-03-2012),6O9 (08-25-2012),addyourmom (11-05-2012),Al3x20 (11-15-2012),anax1 (04-13-2011),Arthur Ace (04-12-2011),batmanrevenge (08-22-2012),bruno321 (08-10-2012),creto98 (04-17-2011),djzou123 (03-04-2013),FireEyes (04-27-2012),[MPGH]Ghost (04-13-2011),hoan277 (07-14-2011),Horror (04-15-2011),iNeedMy2Dollars (04-17-2011),Jasperdepasper (04-17-2011),karagiozis (04-13-2011),Legend™ (04-12-2011),lolman963 (11-16-2012),Ferris Bueller (04-14-2011),MigCraft (12-20-2012),NoJustice (04-13-2011),oyuncu2 (11-11-2012),Raptor (05-25-2012),romio20 (11-15-2012),saidhamzat2 (11-26-2012),sckzx (07-20-2013),Shartob1 (11-03-2012),tetobolla (08-06-2012),toom7410 (07-17-2011),[4]UK[SKIN] (04-18-2011)

  3. #2
    crimsontiger's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    160
    Reputation
    16
    Thanks
    16
    My Mood
    Cool
    Nice Tut!

  4. The Following User Says Thank You to crimsontiger For This Useful Post:

    kev50088 (04-19-2011)

  5. #3
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Gj, But is not what i want.

  6. #4
    markO1O8's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    433
    Reputation
    24
    Thanks
    104
    My Mood
    Amazed

    Exclamation

    Quote Originally Posted by -Away View Post
    Gj, But is not what i want.
    What U Need Man?
    [CENTER]I'm back!

  7. #5
    Legend™'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Somewhere.
    Posts
    2,547
    Reputation
    53
    Thanks
    379
    My Mood
    Inspired
    He means like Good Job but he wont use it
    Nice tut, very simplified for beginner ()
    L3git™|SυpєrMαrio™


  8. #6
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Quote Originally Posted by L3git™ View Post
    He means like Good Job but he wont use it
    Nice tut, very simplified for beginner ()
    Not that, I want another way that i saw. cant explain.

  9. #7
    Code[VB]'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    CODER
    Posts
    608
    Reputation
    11
    Thanks
    702
    My Mood
    Bitchy
    Quote Originally Posted by markO1O8 View Post
    Hello Kiddies At MPGH Today I show you how to
    make a simple crosshair in Visual Basics 2008 - 10


    [VB2008-10] CrossFire Crosshair

    ☻So First: Start Up Your Visual Basics ,

    ☻Click Create New Form Application,

    ☻Rename It Anything You Want,

    ☻Build It By Framework.NET 2.0,
    ,

    ☻You Need: 2 Forms Name The Second Crosshair.vb,

    ☻For crosshair.vb make its Size 50,50 Of by
    the properties, Then Change The Background
    Colour but not to green then got to the bottom of
    Properties and change the transparent key to the same
    colour,

    ☻Change The Border Style Of crosshair.vb To None,

    ☻In Form1.vb Add A Time, Enable it True By The Properties,
    Double Click On Your Form1 Border Design And Add This Code After
    The Public Class Form 1:

    Code:
     Private Property result As Short
        Private Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Integer) As Short
    We Need This Code For The Hot-keys To Work And Be Recognized,

    ☻After That Double Click The Timer And Add The Following:

    Code:
      For i = 6 To 255
    
    
                result = 0
                result = GetAsyncKeyState(i)
    
    
                If GetAsyncKeyState(Keys.F1) Then
                    crosshair.Show()
                End If
    
                If GetAsyncKeyState(Keys.F2) Then
                    crosshair.Hide()
                End If
            Next i
    here we use F1 to show up our crosshair and F2 to hide it!
    and the (i) / Next i ,.. loop is very important for the hot-keys
    because we like that it work for all Operating-systems,

    ☻Now Go on crossfire.vb and go to the Properties And Go To
    Top Most At The Bottom Enable That True Then Go Near The
    Top And Make Enable True,

    ☻Go On Properties Go To The Bottom And Change the
    StartPosition To The CenterScreen So You Turn It On
    And Of In Game So It Fits Screen Size

    ☻Keep On crossfire.vb double click it and Replace the
    crosshair_Load and that with this:
    Code:
    Private Sub Crosshair_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
            Dim greenPen As New Drawing.Pen(Color.Green, 1)
    
            e.Graphics.DrawLine(greenPen, 25, 0, 25, 50)
            e.Graphics.DrawLine(greenPen, 0, 25, 50, 25)
        End Sub
    Your Codes Should Be Like This:
    Form1.vb Code:

    Code For crosshair.vb:




    If All Done Click F5 And Debug It

    If You Think The Crosshair is to big Then:
    ☻remove this code from the crosshair.vb and
    change the size to 25,25,
    ☻Then Go to Tools And Scroll Down To Visual Basic Power
    Pack And Draw Your Own,
    ☻Make Sure You Leave The StartPosition.


    Heres Mine:



    My Template Is Downloadable Below Dont Download
    It Get Your VB Skills Up First Hehe

    Virus Scan: VirusTotal - Free Online Virus, Malware and URL Scanner

    Virus Scan2: I Need Another But Not Viruscan.org It Says
    Too Many Files

    Click Thanks And KEEP MPGH Alive Hehe
    noob leecher!
    / tut made by OverYou from d.x.t

    youre Code[VB] ak OverYou and GER-Domi.

  10. #8
    markO1O8's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    433
    Reputation
    24
    Thanks
    104
    My Mood
    Amazed

    Exclamation

    Quote Originally Posted by Code[VB] View Post
    noob leecher!
    / tut made by OverYou from d.x.t

    youre Code[VB] ak OverYou and GER-Domi.
    Ow It Seem's That i explained my more and added a different way at the bottom :/

    @Code[VB] It seem's that your OverYou? or GER-Domi? Your All The Same :/
    Last edited by markO1O8; 04-13-2011 at 07:02 AM.
    [CENTER]I'm back!

  11. #9
    Crazy Turks's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    İstanbul(Constantinapole)
    Posts
    200
    Reputation
    12
    Thanks
    74
    nice one thank you for your tut
    [IMG]https://i926.photobucke*****m/albums/ad103/cenksi/ISTANBUL.jpg[/IMG]

    My Great Land Istanbul 2010 European Culture Capital

    You shut your mouth
    How can you say
    I go about things the wrong way
    I am Human and I need to be loved
    Just like everybody else does

  12. #10
    djrubenmp3's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    In JackInDaBox
    Posts
    586
    Reputation
    10
    Thanks
    493
    My Mood
    Psychedelic
    Quote Originally Posted by -Away View Post
    Not that, I want another way that i saw. cant explain
    It's this the way? s:

  13. #11
    markO1O8's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    433
    Reputation
    24
    Thanks
    104
    My Mood
    Amazed

    Red face

    Quote Originally Posted by djrubenmp3 View Post
    It's this the way? s:
    Edit: Check, I Like
    Last edited by markO1O8; 04-13-2011 at 07:58 AM.
    [CENTER]I'm back!

  14. #12
    Harmony♫'s Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    I exist on the Sun, and its so Cold Ѿ
    Posts
    3,687
    Reputation
    47
    Thanks
    841
    My Mood
    In Love
    Very Nice .



    Think of a number for me between 1 and 1000. Divide it by 8. Now add 13. Now multiply your result by 0.
    Congratulations, you arrived at the number of fucks i give
    ...

    Skype
    : harmony.mpgh
    .


  15. #13
    The9Legend's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    5
    Whats that an crosshair?

  16. #14
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Quote Originally Posted by djrubenmp3 View Post
    It's this the way? s:
    Omfg, Ill not even answer to that..

  17. #15
    markO1O8's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    433
    Reputation
    24
    Thanks
    104
    My Mood
    Amazed

    Exclamation

    Quote Originally Posted by -Away View Post


    Omfg, Ill not even answer to that..
    Lmfao @-Away
    [CENTER]I'm back!

Page 1 of 5 123 ... LastLast

Tags for this Thread