[April Fools Joke] Mirror your program.

Discussion in 'Programming General' started by Flaming Idiots, Apr 1, 2007.

[April Fools Joke] Mirror your program.
  1. Unread #1 - Apr 1, 2007 at 3:04 AM
  2. Flaming Idiots
    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User

    Flaming Idiots Active Member
    Visual Basic Programmers

    [April Fools Joke] Mirror your program.

    If you want to screw with some people, place the following code into your forms.

    Code:
        Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
            Get
                Dim Params As CreateParams = MyBase.CreateParams
                If Now.Month = 4 And Now.Day = 1 Then Params.ExStyle = Params.ExStyle Or &H400000
                Return Params
            End Get
        End Property
    here is what it will do:
    View attachment MirroredExample.jpg

    And here is how I abused it.
    View attachment 1279


    EDIT: Also, for VB6 people, here is the same code:
    Code:
    Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
    Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
    
    Private Sub Form_Initialize()
        SetWindowLong Me.hWnd, -20, &H400000 Or GetWindowLong(hWnd, -20)
    End Sub
    And for C++ people:
    Code:
    // If not using MFC, change GetSafeHwnd to whatever the forms handle property is.
    SetWindowLong(this->GetSafeHwnd(), GWL_EXSTYLE, WS_EX_LAYOUTRTL|WS_EX_RTLREADING);
     
  3. Unread #2 - Apr 1, 2007 at 4:00 PM
  4. Cheeter
    Joined:
    Jun 5, 2005
    Posts:
    3,850
    Referrals:
    1
    Sythe Gold:
    30
    Discord Unique ID:
    236215891849641985
    Discord Username:
    Charkel#8050
    Extreme Homosex Homosex

    Cheeter Grand Master
    Cheetah Retired Global Moderator

    [April Fools Joke] Mirror your program.

    hehe cool ^^
     
  5. Unread #3 - Apr 1, 2007 at 4:04 PM
  6. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    [April Fools Joke] Mirror your program.

    how very convenient *makes up a vicious and evil plan*
     
  7. Unread #4 - Apr 1, 2007 at 4:19 PM
  8. Cruel__Machine
    Referrals:
    100

    Cruel__Machine Guest

    [April Fools Joke] Mirror your program.

    I know an even better April Fools joke. Keylog them and get their accounts banned!!

    "Haha! April Fools!"
     
  9. Unread #5 - Apr 1, 2007 at 4:22 PM
  10. joewnn
    Joined:
    Apr 21, 2005
    Posts:
    1,500
    Referrals:
    0
    Sythe Gold:
    0

    joewnn Guru
    Banned

    [April Fools Joke] Mirror your program.

    Or murder a cousin. Draw HAHA, APRIL FOOLS on their forehead and leave them in the bath tub for a few weeks before someone notices.

    sorry, I had to let that out...
     
  11. Unread #6 - Apr 1, 2007 at 4:24 PM
  12. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    [April Fools Joke] Mirror your program.

    zomg great idea! *writes a undetectable keylogger in c#.net*
     
< visual basic 2005 express edition serial | Save/Load ListBox C# >

Users viewing this thread
1 guest


 
 
Adblock breaks this site