*/
Stuck? Need help? Ask questions on our forums.
*/

View Multiplication\frmmain.frm

Multiplication Table Generator 1.1

Submitted By: nil_sharma
Rating: (Not rated) (Rate It)


VERSION 5.00
Begin VB.Form frmmain
   Caption         =   "Multiplication Table Generator"
   ClientHeight    =   7170
   ClientLeft      =   4455
   ClientTop       =   2325
   ClientWidth     =   5865
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   7170
   ScaleWidth      =   5865
   Begin VB.CommandButton btnabout
      Caption         =   "&ABOUT"
      Height          =   400
      Left            =   2880
      TabIndex        =   55
      Top             =   6480
      Width           =   1000
   End
   Begin VB.CommandButton btnclose
      Caption         =   "&CLOSE"
      Height          =   400
      Left            =   1200
      TabIndex        =   54
      Top             =   6480
      Width           =   1000
   End
   Begin VB.CommandButton btngen
      Caption         =   "&GENERATE"
      Height          =   375
      Left            =   3360
      TabIndex        =   53
      Top             =   360
      Width           =   1335
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   9
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   52
      Text            =   "Text4"
      Top             =   5760
      Width           =   550
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   8
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   51
      Text            =   "Text4"
      Top             =   5240
      Width           =   550
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   7
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   50
      Text            =   "Text4"
      Top             =   4720
      Width           =   550
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   6
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   49
      Text            =   "Text4"
      Top             =   4200
      Width           =   550
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   5
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   48
      Text            =   "Text4"
      Top             =   3680
      Width           =   550
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   4
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   47
      Text            =   "Text4"
      Top             =   3160
      Width           =   550
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   3
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   46
      Text            =   "Text4"
      Top             =   2640
      Width           =   550
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   2
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   45
      Text            =   "Text4"
      Top             =   2120
      Width           =   550
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   1
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   44
      Text            =   "Text4"
      Top             =   1600
      Width           =   550
   End
   Begin VB.TextBox ans
      Height          =   375
      Index           =   0
      Left            =   4200
      Locked          =   -1  'True
      MaxLength       =   3
      TabIndex        =   43
      Text            =   "Text4"
      Top             =   1080
      Width           =   550
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   9
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   32
      Text            =   "Text3"
      Top             =   5760
      Width           =   500
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   8
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   31
      Text            =   "Text3"
      Top             =   5240
      Width           =   500
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   7
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   30
      Text            =   "Text3"
      Top             =   4720
      Width           =   500
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   6
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   29
      Text            =   "Text3"
      Top             =   4200
      Width           =   500
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   5
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   28
      Text            =   "Text3"
      Top             =   3680
      Width           =   500
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   4
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   27
      Text            =   "Text3"
      Top             =   3160
      Width           =   500
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   3
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   26
      Text            =   "Text3"
      Top             =   2640
      Width           =   500
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   2
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   25
      Text            =   "Text3"
      Top             =   2120
      Width           =   500
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   1
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   24
      Text            =   "Text3"
      Top             =   1600
      Width           =   500
   End
   Begin VB.TextBox Text3
      Height          =   375
      Index           =   0
      Left            =   2640
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   23
      Text            =   "Text3"
      Top             =   1080
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   9
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   12
      Text            =   "Text2"
      Top             =   5760
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   8
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   11
      Text            =   "Text2"
      Top             =   5240
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   7
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   10
      Text            =   "Text2"
      Top             =   4720
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   6
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   9
      Text            =   "Text2"
      Top             =   4200
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   5
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   8
      Text            =   "Text2"
      Top             =   3680
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   4
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   7
      Text            =   "Text2"
      Top             =   3160
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   3
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   6
      Text            =   "Text2"
      Top             =   2640
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   2
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   5
      Text            =   "Text2"
      Top             =   2120
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   1
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   4
      Text            =   "Text2"
      Top             =   1600
      Width           =   500
   End
   Begin VB.TextBox Text2
      Height          =   375
      Index           =   0
      Left            =   1080
      Locked          =   -1  'True
      MaxLength       =   2
      TabIndex        =   3
      Text            =   "Text2"
      Top             =   1080
      Width           =   500
   End
   Begin VB.TextBox que
      BeginProperty DataFormat
         Type            =   1
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   1033
         SubFormatType   =   1
      EndProperty
      Height          =   300
      Left            =   1920
      MaxLength       =   2
      TabIndex        =   1
      Top             =   435
      Width           =   550
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   9
      Left            =   3480
      TabIndex        =   42
      Top             =   5760
      Width           =   255
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   8
      Left            =   3480
      TabIndex        =   41
      Top             =   5240
      Width           =   255
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   7
      Left            =   3480
      TabIndex        =   40
      Top             =   4720
      Width           =   255
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   6
      Left            =   3480
      TabIndex        =   39
      Top             =   4200
      Width           =   255
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   5
      Left            =   3480
      TabIndex        =   38
      Top             =   3680
      Width           =   255
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   4
      Left            =   3480
      TabIndex        =   37
      Top             =   3160
      Width           =   255
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   3
      Left            =   3480
      TabIndex        =   36
      Top             =   2640
      Width           =   255
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   2
      Left            =   3480
      TabIndex        =   35
      Top             =   2120
      Width           =   255
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   1
      Left            =   3480
      TabIndex        =   34
      Top             =   1600
      Width           =   255
   End
   Begin VB.Label Label4
      Caption         =   "="
      Height          =   255
      Index           =   0
      Left            =   3480
      TabIndex        =   33
      Top             =   1080
      Width           =   255
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   9
      Left            =   1920
      TabIndex        =   22
      Top             =   5880
      Width           =   375
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   8
      Left            =   1920
      TabIndex        =   21
      Top             =   5344
      Width           =   375
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   7
      Left            =   1920
      TabIndex        =   20
      Top             =   4811
      Width           =   375
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   6
      Left            =   1920
      TabIndex        =   19
      Top             =   4278
      Width           =   375
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   5
      Left            =   1920
      TabIndex        =   18
      Top             =   3745
      Width           =   375
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   4
      Left            =   1920
      TabIndex        =   17
      Top             =   3212
      Width           =   375
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   3
      Left            =   1920
      TabIndex        =   16
      Top             =   2679
      Width           =   375
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   2
      Left            =   1920
      TabIndex        =   15
      Top             =   2146
      Width           =   375
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   1
      Left            =   1920
      TabIndex        =   14
      Top             =   1613
      Width           =   375
   End
   Begin VB.Label Label3
      Caption         =   "X"
      Height          =   255
      Index           =   0
      Left            =   1920
      TabIndex        =   13
      Top             =   1080
      Width           =   375
   End
   Begin VB.Label Label2
      Caption         =   "(1-99)"
      Height          =   255
      Left            =   2640
      TabIndex        =   2
      Top             =   480
      Width           =   495
   End
   Begin VB.Label Label1
      Caption         =   "Enter number "
      Height          =   255
      Left            =   840
      TabIndex        =   0
      Top             =   480
      Width           =   1095
   End
End
Attribute VB_Name = "frmmain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Function generate()
If IsNumeric(que.Text) Then
If que.Text > 0 Then
For i = 0 To 9
   
    ans(i) = (i + 1) * que.Text
    Text2(i).Text = que.Text
    Text3(i).Text = i + 1
Next i
End If
End If
End Function

Private Sub btnabout_Click()
    frmAbout.Show
End Sub

Private Sub btnclose_Click()
End
End Sub

Private Sub btngen_Click()
On Error GoTo error_handler
y = generate()
que.SetFocus
Exit Sub
error_handler:
que.Text = ""
End Sub

Private Sub Form_Load()
For i = 0 To 9
    Text2(i).Text = ""
    Text3(i).Text = ""
    ans(i).Text = ""
Next i

End Sub

Private Sub que_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
    que.SetFocus
    z = generate()
End If
End Sub

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.