[tut]How to annoy someone[tut]

Discussion in 'Archives' started by WoW Sucks, Mar 6, 2007.

[tut]How to annoy someone[tut]
  1. Unread #1 - Mar 6, 2007 at 2:34 PM
  2. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    [tut]How to annoy someone[tut]

    Make it looks something like this!
    To this! [​IMG]
    [​IMG]

    What will this code do?

    The code below, when ran will bring up the design of your program. When the user clicks the command button it will show a textbox. When the user clicks "Ok" on the text box to get rid of it, it will launch another text box and so on.. (thats the annoying part if they don't know how to close programs with Ctrl + alt + del) :p

    The code:

    Code:
    Private Sub Command1_Click()
    
    Dim start As String
    
    start = Text1.Text
    
    While (start = Text1.Text)
        MsgBox txt & "Hello World", vbCritical, ""
    
    Wend
    
    End Sub 

    The code, split up:


    This is just the code given to the command button, it tells VB to opperate the button you have to click it.
    Code:
    Private Sub Command1_Click()

    All Dim means is "Recognise". So this code says...
    "Recognise the word "Start" as a string."
    Code:
    Dim start As String

    This peice of coding means that "start" is equal to the text box (text1.text)
    Code:
    start = Text1.Text
    This peice of coding means that..
    While "start" is equal to the first text box, make a message box appear saying "Hello World" inside it.
    Code:
    While (start = Text1.Text) 
    	MsgBox txt & "Hello World", vbCritical, ""
    All this does is tells VB to stop making messageboxes (which this program doesn't do) But VB likes you to have it there anyway :)
    Code:
    Wend
    Other Info:

    You can change the Hello World and the "" to different things, like i have done on the screenshot.

    Code:
    Private Sub Command1_Click()
    
    Dim start As String
    
    start = Text1.Text
    
    While (start = Text1.Text)
        MsgBox txt & [b]"LOL You Play RS!"[/b], vbCritical, [b]"LOL @ YOU"[/b]
    
    Wend
    
    End Sub
    Please tell me if i have made any mistakes. I tried my best :p (It works btw)
     
  3. Unread #2 - Mar 7, 2007 at 1:18 PM
  4. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

    -------owned------- Guru
    Banned

    [tut]How to annoy someone[tut]

    Pretty annoying yes:p but most ppl who don't know programming thinks it's a keylogger or brute-forcer or something ^^
     
  5. Unread #3 - Mar 8, 2007 at 12:54 PM
  6. Nathan III
    Joined:
    Jan 24, 2007
    Posts:
    872
    Referrals:
    0
    Sythe Gold:
    0

    Nathan III Apprentice

    [tut]How to annoy someone[tut]

    Oh, And I like this tutorial. 'tis funny :p
     
  7. Unread #4 - Mar 8, 2007 at 3:54 PM
  8. Redemption
    Joined:
    Jan 22, 2007
    Posts:
    429
    Referrals:
    0
    Sythe Gold:
    0

    Redemption Forum Addict
    Banned

    [tut]How to annoy someone[tut]

    Lol you're getting random, man.

    Nice guide on teaching how to make forms work, though.
     
< How do i Make User Bars? | How To Auto-Hide a Windows XP Taskbar >

Users viewing this thread
1 guest


 
 
Adblock breaks this site