?? 020.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 6060
ClientLeft = 60
ClientTop = 450
ClientWidth = 5565
LinkTopic = "Form1"
ScaleHeight = 6060
ScaleWidth = 5565
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text5
BeginProperty Font
Name = "宋體"
Size = 26.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 855
Left = 1920
TabIndex = 10
Top = 4320
Width = 3135
End
Begin VB.TextBox Text4
BeginProperty Font
Name = "宋體"
Size = 26.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 855
Left = 1920
TabIndex = 9
Top = 3240
Width = 3135
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "宋體"
Size = 26.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 1920
TabIndex = 8
Top = 2160
Width = 3135
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋體"
Size = 26.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 1920
TabIndex = 7
Top = 1080
Width = 3135
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋體"
Size = 26.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 1920
TabIndex = 6
Top = 0
Width = 3135
End
Begin VB.CommandButton Command1
Caption = "計算"
BeginProperty Font
Name = "宋體"
Size = 26.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 600
Left = 1440
TabIndex = 5
Top = 5400
Width = 1935
End
Begin VB.Label Label5
Caption = "X2="
BeginProperty Font
Name = "宋體"
Size = 42
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 120
TabIndex = 4
Top = 4320
Width = 1575
End
Begin VB.Label Label4
Caption = "X1="
BeginProperty Font
Name = "宋體"
Size = 42
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 120
TabIndex = 3
Top = 3240
Width = 1575
End
Begin VB.Label Label3
Caption = "C="
BeginProperty Font
Name = "宋體"
Size = 42
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 120
TabIndex = 2
Top = 2280
Width = 1575
End
Begin VB.Label Label2
Caption = "B="
BeginProperty Font
Name = "宋體"
Size = 42
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 120
TabIndex = 1
Top = 1200
Width = 1575
End
Begin VB.Label Label1
Caption = "A="
BeginProperty Font
Name = "宋體"
Size = 42
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 120
TabIndex = 0
Top = 0
Width = 1575
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 a As Integer, b As Integer, c As Integer, d, x1, x2
a = Text1.Text
b = Text2.Text
c = Text3.Text
d = b ^ 2 - 4 * a * c
If d >= 0 Then
x1 = (-b + d ^ 1 / 2) / 2 * a
x2 = (-b - d ^ 1 / 2) / 2 * a
Else
x1 = "無解"
x2 = "無解"
End If
Text4.Text = x1
Text5.Text = x2
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -