كارگاه VB
VERSION 5.00
Begin VB.Form Form1
BackColor = &H8000000E&
Caption = "P135-3"
ClientHeight = 3090
ClientLeft = 6765
ClientTop = 5430
ClientWidth = 4680
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
Begin VB.CommandButton Command2
Caption = "End"
Height = 495
Left = 3120
TabIndex = 1
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "Run"
Height = 495
Left = 3120
TabIndex = 0
Top = 1440
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim inta, intb, intc As Integer
inta = InputBox("enter inta:")
intb = InputBox("enter intb:")
If intb <> 0 Then
intc = inta \ intb
Print " The result is : "; intc
Else
Print " Not defined "
End If
End Sub
Begin VB.Form Form1
BackColor = &H8000000E&
Caption = "P135-3"
ClientHeight = 3090
ClientLeft = 6765
ClientTop = 5430
ClientWidth = 4680
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
Begin VB.CommandButton Command2
Caption = "End"
Height = 495
Left = 3120
TabIndex = 1
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "Run"
Height = 495
Left = 3120
TabIndex = 0
Top = 1440
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim inta, intb, intc As Integer
inta = InputBox("enter inta:")
intb = InputBox("enter intb:")
If intb <> 0 Then
intc = inta \ intb
Print " The result is : "; intc
Else
Print " Not defined "
End If
End Sub
Private Sub Command2_Click()
End
End Sub
+ نوشته شده در دوشنبه ۲۳ آذر ۱۳۸۸ ساعت ۴:۴ ق.ظ توسط رایانه5
|