Adblock breaks this site

[April Fools Joke] Mirror your program.

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

  1. Flaming Idiots

    Flaming Idiots Active Member
    Visual Basic Programmers

    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User
    [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);
     
  2. Cheeter

    Cheeter Grand Master
    Cheetah Retired Global Moderator

    Joined:
    Jun 5, 2005
    Posts:
    3,851
    Referrals:
    1
    Sythe Gold:
    31
    Discord Unique ID:
    236215891849641985
    Discord Username:
    Charkel#8050
    Extreme Homosex Homosex
    [April Fools Joke] Mirror your program.

    hehe cool ^^
     
  3. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    [April Fools Joke] Mirror your program.

    how very convenient *makes up a vicious and evil plan*
     
  4. Cruel__Machine

    Cruel__Machine Guest

    Referrals:
    100
    [April Fools Joke] Mirror your program.

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

    "Haha! April Fools!"
     
  5. joewnn

    joewnn Guru
    Banned

    Joined:
    Apr 21, 2005
    Posts:
    1,500
    Referrals:
    0
    Sythe Gold:
    0
    [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...
     
  6. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    [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# >


 
 
Adblock breaks this site