Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: VB 6

  1. #11
    Join Date
    Aug 2007
    Posts
    5

    Default

    Private Sub Command1_Click()
    Dim i, n As Integer
    n = 12
    List1.List(0) = "multiply"
    i = 1
    Do While i <= n
    List1.AddItem (i & " x " & n & vbTab & "=" & i * n)
    i = i + 1
    Loop
    End Sub

  2. #12
    Join Date
    Aug 2007
    Posts
    5

    Default Grade

    Private Sub Command1_Click()
    Dim Num As Integer
    Select Case Val(Text1.Text)
    Case 80 To 100: MsgBox "Grade A" & vbCrLf & "Oh Very Good !"
    Case 70 To 79: MsgBox "Grade B"
    Case 60 To 69: MsgBox "Grade C"
    Case 50 To 59: MsgBox "Grade D"
    Case 0 To 49: MsgBox "Grade F" & vbCrLf & "Oh sorry You Fall"
    Case Else: MsgBox "Sorry , Press your number Between 0 to 100"
    End Select
    End Sub

  3. #13
    Join Date
    Aug 2008
    Posts
    2

    Default

    Source code and tutorial please check http://gratisbogor.wordpress.com

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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