User Profile

Collapse

Profile Sidebar

Collapse
peterggmss
peterggmss
Last Activity: Dec 4 '06, 07:06 PM
Joined: Oct 17 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • peterggmss
    replied to VB.NET: How do I randomize Words?
    in .NET
    Use a random integer

    Code:
    Dim RandomWordNumber as Integer
    
    Private Sub cmdShowWord_Click()
    
         'Generate a random number
         RandomWordNumber = Int(6 * Rnd + 1)
    
         'See which number is for which word and change the label
         If RandomWordNumber = 1 Then
              lblWord.Caption = "Teacher"
         End If
    Start with that and see what...
    See more | Go to post

    Leave a comment:


  • frmRandom
    Code:
    'Slot Machine, (c) 2006 Peter Browne, GPL Licensed
    '
    'Peter Browne
    'Sheridan Corporate Centre
    '2155 Leanne Blvd., Ste. 200B
    'Mississauga ON  L5K 2K8
    '(905) 616-6099
    'peterrbrowne@hotmail.com
    '
    '
    'PPPPPPPPPPPPPPPPPPPPPPPPP     PPPPPPPPPPPPPPPPPPPPPPPPP              BBBBBBBBBBBBBBBBBBBB
    ' PPPPPPPPPPPPPPPPPPPPPPPPPPP   PPPPPPPPPPPPPPPPPPPPPPPPPP
    ...
    See more | Go to post

    Leave a comment:


  • Slot Machine Game, need to have frmMachine wait for frmRandom

    This is a slot machine game, 2 forms. One is the actual game (frmMachine) and the other is in the background and randomizes the images shown on frmMachine. I need to make frmMachine wait for frmRandom, i tried it with the Sleep API and a Do/Until Loop and neither worked, could you please help me, I have my code below.

    frmMachine
    Code:
    'Slot Machine, (c) 2006 Peter Browne, GPL Licensed
    '
    'Peter Browne
    ...
    See more | Go to post

  • peterggmss
    replied to Area of a Trapezoid
    Sorry here's the link to the other problem I solved: Long URL
    See more | Go to post

    Leave a comment:


  • peterggmss
    started a topic Area of a Trapezoid

    Area of a Trapezoid

    Hello,
    Sorry for asking so many questions. I need to find the area of a trapezoid as part of a Visual Basic application for Windows (although it will run in Linux through WINE - I'll make sure of that). I dont have my code with me at the moment, it looks something like this, when I try it with 1 as txtA.text, txtB.text and txtH.txt, I get 5.5 as the answer (should be 2.5). I had another problem which I solved (click ere).

    ...
    See more | Go to post

  • peterggmss
    replied to Find Coins
    Hello,
    I also need to make a similar program. I have a text box "txtChange" in which the user inputs the amount of change, in cents.

    The code I have, so far, is:
    Code:
    Private Sub Form_Load()
        Dim txtChange As Integer
        Dim Quarters As Integer
        Dim Dimes As Integer
        Dim Nickles As Integer
        Dim Pennies As Integer
        Dim NumberQuarters As Integer
        Dim
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...