Go Back   Random Stuff Forums > Technical > Programming

Programming Discuss any type of programming here.

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 16-09-2007, 10:24 PM
World Domination's Avatar
(Offline)
Super Sexy Admin
 
Join Date: Jan 2007
Location: Illinois, USA
Posts: 7,384
World Domination is an unknown quantity at this point
Default [TUT - VB6] - A Fun Joke

This is basically the same joke as the Batch Joke Matt posted, but for Visual Basic.
This is very easy to do and takes no skill whatsoever.

First you need to open up Visual Basic and choose Standard EXE.

Now, Double click inside Form1.

Under the Form_Load function (
Private Sub Form_Load()
) Type the following:
MsgBox ("This is a fun Joke.")
You can make the part in green say whatever you want.

Now what this does it when the person Opens the .EXE file a Message Box pops up and has what is in green above on it. It will also have an 'Ok' Button.

If you add more Message Boxes to the code it will open the next one when the person hits the OK button.

For example...

If I had this code:
Private Sub Form_Load()
MsgBox ("HEY")
MsgBox ("LOL")
MsgBox ("This is the beginning of many Message boxes")
MsgBox ("LULZ")
MsgBox ("ETC.")
End Sub
Then when I opened the .EXE a message box saying "HEY" Would pop up with an OK button. If I woudl hit OK then another one would pop up saying "LOL". If I hit OK on that one then another would pop up saying "This is the beginning on many Message boxes". Etc.
You can do as many Message boxes as you wish, although after about 1,000 or so it will lag your computer badly when trying to compile.

This can be a fun joke, or a very annoying joke. use it wisely and don't use it on someone with no patience. :P

I hope everyone understood and enjoyed the Tutorial. +Rep Appreciated.
__________________
RSForums.org - We Don't give a fuck.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"It's not yelling, it's projecting; and by the way, my voice is soothing."
-Billy Mays


Last edited by World Domination; 09-10-2007 at 10:43 PM..
Reply With Quote
  #2  
Old 16-09-2007, 11:47 PM
Dirty's Avatar
Dirty (Offline)
New Member
 
Join Date: Sep 2007
Location: USA
Posts: 23
Dirty is an unknown quantity at this point
Default

Made me laugh, might try it sometime. +Rep'd
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reply With Quote
  #3  
Old 22-09-2007, 02:52 PM
Chickenultra (Offline)
Yar... PIRATE!
 
Join Date: Feb 2007
Posts: 2,102
Chickenultra is an unknown quantity at this point
Default

It's like the javascript alert one I made

for (var i =0; i>-1; i++)
{
alert("HI!");
}

Or something :P
Reply With Quote
  #4  
Old 22-09-2007, 03:09 PM
Maglor's Avatar
Maglor (Offline)
Member
 
Join Date: May 2007
Posts: 91
Maglor is an unknown quantity at this point
Default

I prefer this

        Dim i As Integer
        For i = 1 To 10000
            MsgBox("Lol")
        Next
Reply With Quote
  #5  
Old 04-10-2007, 10:15 AM
Marty*BANNED* (Offline)
BANNED
 
Join Date: Sep 2007
Posts: 344
Marty is an unknown quantity at this point
Default

I didn't really like the tut..
Reply With Quote
  #6  
Old 04-10-2007, 05:31 PM
World Domination's Avatar
(Offline)
Super Sexy Admin
 
Join Date: Jan 2007
Location: Illinois, USA
Posts: 7,384
World Domination is an unknown quantity at this point
Default

Originally Posted by Pein View Post
I didn't really like the tut..
And I don't really care... so kthnxbai.
__________________
RSForums.org - We Don't give a fuck.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"It's not yelling, it's projecting; and by the way, my voice is soothing."
-Billy Mays

Reply With Quote
  #7  
Old 07-10-2007, 11:34 PM
Puol's Avatar
Puol (Offline)
New Member
 
Join Date: Aug 2007
Posts: 48
Puol is an unknown quantity at this point
Default

its good. but its more fun if:

-you put code in to delete from process list and system tray etc.
-you put on an interval
-repeats.

:P
__________________
Puol - Old School Runescape Bot Programmer
Reply With Quote
  #8  
Old 09-10-2007, 10:36 AM
Joshua's Avatar
Joshua (Offline)
AKA Brimmy
 
Join Date: Feb 2007
Location: Australia
Posts: 1,491
Joshua is an unknown quantity at this point
Default

U spelt of wrong
__________________


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


All who have accomplished great things have had a great aim, have fixed their gaze on a goal which was high, one which sometimes seemed impossible.
Reply With Quote
  #9  
Old 09-10-2007, 05:42 PM
WoW Sucks (Offline)
Member
 
Join Date: Feb 2007
Posts: 130
WoW Sucks is an unknown quantity at this point
Default

You have a VB coder rank for this..........?
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


Reply With Quote
  #10  
Old 09-10-2007, 10:45 PM
World Domination's Avatar
(Offline)
Super Sexy Admin
 
Join Date: Jan 2007
Location: Illinois, USA
Posts: 7,384
World Domination is an unknown quantity at this point
Default

Originally Posted by Brimmy View Post
U spelt of wrong
Thanks for telling me. Surprised I didn't catch it.

You have a VB coder rank for this..........?
No, I have it for other reasons. This was a Tutorial I made for people that are new TO Visual Basic. If all your going to do is spam my thread, please don't post.
__________________
RSForums.org - We Don't give a fuck.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"It's not yelling, it's projecting; and by the way, my voice is soothing."
-Billy Mays

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 05:15 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright © 2006 - 2010, Rsforums.org