Results 1 to 27 of 27

Thread: Lame Programming

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Post Lame Programming

    Let's join our varyingly limited intellects and make the absolute lamest VB program ever!!!

    We'll distribute it as a shareware, and charge heavy fees to any people stupid enough to want the full version, which will simply be a new splash screen with "full version" written on it.


  2. #2
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    280
    count me in.. where do we start?
    OrdinaryGuy

  3. #3
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796
    I'll start you off...

    VB Code:
    1. Public Sub Main()
    2. ' Put some code in here...
    3.  
    4. End Sub
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  4. #4
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    280
    VB Code:
    1. Public Sub Main()
    2.   Do
    3.   Loop
    4. End Sub
    OrdinaryGuy

  5. #5
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    but we want the user to be able to do *something* with it...

    VB Code:
    1. Public Sub Main()
    2.     Dim i As Integer
    3.  
    4.     Do While i <= 10
    5.         MsgBox "Loading... (" & i & "secs remaining)"
    6.         i = i + 1
    7.     Loop
    8. End Sub
    Last edited by tr0n; Oct 15th, 2002 at 10:41 AM.

  6. #6

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    VB Code:
    1. Public Sub Main()
    2.     Dim i As Integer
    3.  
    4.     Do While i <= 10
    5.         MsgBox "Loading... (" & i & "secs remaining)"
    6.         i = i + 1
    7.     Loop
    8.  
    9. MsgBox "Loaded! Congratulations!"
    10. Msgbox "Press OK to continue, or Cancel to go on."
    11.  
    12. End Sub

  7. #7
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    VB Code:
    1. Public Sub Main()
    2.     Dim i As Integer
    3.  
    4.     Do While i <= 10
    5.         MsgBox "Loading... (" & i & "secs remaining)"
    6.         i = i + 1
    7.     Loop
    8.  
    9. MsgBox "Loaded! Congratulations!"
    10. Msgbox "Press OK to continue, or Cancel to go on."
    11.  
    12. If vbOK = 1 Then
    13.     Form1.Show
    14. Else
    15.     End
    16. End If
    17. End Sub

  8. #8
    Hyperactive Member Hampster's Avatar
    Join Date
    Feb 2001
    Location
    On my hamster wheel.
    Posts
    374
    _
    Attached Files Attached Files

  9. #9
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    That is the most irritating thing I ever saw. Dammit.

    So do NOT click here
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  10. #10
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    How about this:
    VB Code:
    1. Dim NumberHits(2) As Long
    2.  
    3. Private Sub cmdBut_Click(Index As Integer)
    4. Dim I As Long
    5. Dim R_Num As Long
    6. Randomize
    7. R_Num = Int(Rnd * 200) Mod 2
    8. Select Case Index
    9.     Case 2
    10.         For I = 0 To 2
    11.             NumberHits(I) = 0
    12.         Next I
    13.         lblHit(0) = "Number Right: 0"
    14.         lblHit(1) = "Number Wrong: 0"
    15.         lblHit(2) = "Psychic Rating: 0 out of 100"
    16.     Case Else
    17.         NumberHits(2) = NumberHits(2) + 1
    18.         If R_Num = Index Then
    19.             NumberHits(0) = NumberHits(0) + 1   'Right
    20.         Else
    21.             NumberHits(1) = NumberHits(1) + 1   'Right
    22.         End If
    23.         lblHit(0) = "Number Right: " & NumberHits(0)
    24.         lblHit(1) = "Number Wrong: " & NumberHits(1)
    25.         lblHit(2) = "Psychic Rating: " & Int(100 * (NumberHits(0) / NumberHits(2))) & " out of 100"
    26. End Select
    27. End Sub
    28.  
    29. Private Sub Form_Load()
    30.     Call cmdBut_Click(2)
    31. End Sub

    Throw in a Msg(100) string array with various comments,
    And it should be easily marketable.

    At lets say a Buck a pop, who wouldn't love it!
    Attached Files Attached Files

  11. #11
    Addicted Member
    Join Date
    Apr 2002
    Location
    Blue Mountains NSW Australia
    Posts
    160
    Originally posted by mendhak
    VB Code:
    1. Public Sub Main()
    2.     Dim i As Integer
    3.  
    4.     Do While i <= 10
    5.         MsgBox "Loading... (" & i & "secs remaining)"
    6.         i = i + 1
    7.     Loop
    8.  
    9. MsgBox "Loaded! Congratulations!"
    10. Msgbox "Press OK to continue, or Cancel to go on."
    11.  
    12. End Sub
    LOL that was f***en hilarious dude, and im not even stoned lmao.
    Jack Daniels
    ICQ: 72074030
    VB 6.0

  12. #12
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    i thought this was going to be a collaboration from all of us (like the thread where everyone adds a bit to a story), rather than just posting your own thing.

  13. #13
    Addicted Member
    Join Date
    Apr 2002
    Location
    Blue Mountains NSW Australia
    Posts
    160
    well start another but lay down a few rules in the first post first...
    Jack Daniels
    ICQ: 72074030
    VB 6.0

  14. #14
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    can't be arsed

  15. #15
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    Allright, I'll start a new one:

    VB Code:
    1. Option Explicit

  16. #16
    Addicted Member
    Join Date
    Apr 2002
    Location
    Blue Mountains NSW Australia
    Posts
    160
    okies
    VB Code:
    1. Option Explicit
    2. Dim x as Integer
    Jack Daniels
    ICQ: 72074030
    VB 6.0

  17. #17
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    VB Code:
    1. Option Explicit
    2. Dim x as Integer
    3. On Error Resume Next

  18. #18
    Lively Member Wally Pipp's Avatar
    Join Date
    Jan 2002
    Location
    Carnivàle
    Posts
    79
    Your message box is faulty. It should read :

    VB Code:
    1. MsgBox "Continue ? Press 'yes' for no and 'no' for yes, 'cancel' for both.", vbOkOnly, "The Twilight zone"
    A post brought to you by the Grim Reaper Appreciation Society™

    "Buy your lifetime subscription now and save on your coffin"

  19. #19
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796
    VB Code:
    1. Option Explicit
    2.  
    3. Public Sub Main()
    4.   Dim x as Integer
    5.  
    6.   On Error Resume Next
    7.  
    8. End Sub
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  20. #20
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    VB Code:
    1. Option Explicit
    2.  
    3. Public Sub Main()
    4.   Dim x as Integer
    5.  
    6.   On Error Resume Next
    7.  
    8.   x = x / 0
    9. End Sub

  21. #21
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    VB Code:
    1. Option Explicit
    2.  
    3. Public Sub Main()
    4.   Dim x as Integer
    5.  
    6.   On Error Resume Next
    7.  
    8.   x = x / 0
    9.   if x > 0 then Msgbox "There is something wrong with your calculation!"
    10. End Sub

  22. #22
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796
    VB Code:
    1. Option Explicit
    2.  
    3. Public Sub Main()
    4.   Dim x As Integer
    5.   Dim y As Long
    6.  
    7.   On Error Resume Next
    8.  
    9.   x = x / 0
    10.  
    11.   If Err Then
    12.     y = 40000
    13.   End If
    14.  
    15.   if x > 0 then Msgbox "There is something wrong with your calculation!"
    16.  
    17. End Sub
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  23. #23
    Fanatic Member
    Join Date
    Apr 2002
    Posts
    638
    VB Code:
    1. 'Module 1
    2. Option Explicit
    3.  
    4. Public Sub Main()
    5.   Dim x As Long
    6.   Dim y As Long
    7.  
    8.   On Error Resume Next
    9.  
    10.   x = x / 0
    11.  
    12.   If Err Then
    13.     y = 40000
    14.   End If
    15.  
    16.   If x > 0 then Msgbox "There is something wrong with your calculation!"
    17.  
    18.   y = y
    19.   If y = y = True Then x = y
    20.   If x = y And y = x Then
    21.     x = x
    22.  
    23.     'impress the user with amazing graphical abilities
    24.     Form1.Show
    25.     Unload Form1
    26.     Form1.Show
    27.     Unload Form1
    28.     Form1.Show
    29.     Unload Form1
    30.     Form1.Show
    31.     Unload Form1
    32.     Form1.Show
    33.   End If
    34. End Sub
    35.  
    36. 'Form1
    37. Option Explicit
    38.  
    39. Private Sub Form_Load()
    40.  
    41. End Sub
    Last edited by tr0n; Oct 16th, 2002 at 09:17 AM.

  24. #24
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    I say you should inform the user early on about terminating the app:
    VB Code:
    1. MsgBox "Welcome! To terminate the application at anytime, press the X button ( not the one on your calculator). You can also shot down windows to terminate the program."
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  25. #25
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    VB Code:
    1. 'Module 1
    2. Option Explicit
    3.  
    4. Public Sub Main()
    5.   Dim x As Long
    6.   Dim y As Long
    7.  
    8.   On Error Resume Next
    9.  
    10.   x = x / 0
    11.  
    12.   If Err Then
    13.     y = 40000
    14.   End If
    15.  
    16.   If x > 0 then Msgbox "There is something wrong with your calculation!"
    17.  
    18.   y = y
    19.   If y = y = True Then x = y
    20.   If x = y And y = x Then
    21.     x = x
    22.  
    23.     'impress the user with amazing graphical abilities
    24.     Form1.Show
    25.     Unload Form1
    26.     Form1.Show
    27.     Unload Form1
    28.     Form1.Show
    29.     Unload Form1
    30.     Form1.Show
    31.     Unload Form1
    32.     Form1.Show
    33.   End If
    34. End Sub
    35.  
    36. 'Form1
    37. Option Explicit
    38.  
    39. Private Sub Form_Load()
    40. While Msgbox ("Click the cancel button to start the application",Vbokonly or vbInformation, "<Title goes here>") <> VbCancel
    41. Wend
    42.  
    43. End Sub

  26. #26
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    When do we start distributing the full version for high fees?

  27. #27
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    whoa whoa, im the lamest programmer


    Private Sub Form_Load()

    Unload Me

    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width